Hi, I'm using the following piece of code to check if users have entered data into a form . . .
if((!$first_name) || (!$last_name) || (!$company) || (!$email_address) || (!$username)){
echo 'You did not submit the following required information! <br />';
if(!$first_name){
echo "First Name is a required field.<br />";
}
if(!$last_name){
echo "Last Name is a required field. <br />";
}
if(!$company){
echo "Your Company Name is a required field. <br />";
}
if(!$email_address){
echo "Email Address is a required field. <br />";
}
if(!$username){
echo "Desired Username is a required field. <br />";
}
I was wondering how I echo the results of my query in a pop up window, rather than on a blank page - is this possible?
Thankyou in advance!
if((!$first_name) || (!$last_name) || (!$company) || (!$email_address) || (!$username)){
echo 'You did not submit the following required information! <br />';
if(!$first_name){
echo "First Name is a required field.<br />";
}
if(!$last_name){
echo "Last Name is a required field. <br />";
}
if(!$company){
echo "Your Company Name is a required field. <br />";
}
if(!$email_address){
echo "Email Address is a required field. <br />";
}
if(!$username){
echo "Desired Username is a required field. <br />";
}
I was wondering how I echo the results of my query in a pop up window, rather than on a blank page - is this possible?
Thankyou in advance!