craighowarth
12-31-2006, 04:08 PM
Basically...
I have got...
if (empty($name))
{
echo '<div align="center" <span class="style2"><strong>ERROR:</strong> You did not enter your name, please go back and fill your name in the required field.</span></div>';
include 'quote.htm';
}
elseif(empty($email))
{
echo '<div align="center" <span class="style2"><strong>ERROR:</strong> You did not enter your email address, please go back and fill your email address in the required field.</span></div>';
include 'quote.htm';
}
elseif (empty($other))
{
echo '<div align="center" <span class="style2"><strong>ERROR:</strong> You did not enter any information about what you would like designing, please go back and fill in all the information possible in the required field.</span></div>';
include 'quote.htm';
exit();
}
else
And what i'd like to do is make them ALL come up if they are ALL left blank.. the way it is atm, only 1 of them comes up at a time.
For example, if 'name' and 'email' are left blank... only name will come up as an error message.
I have got...
if (empty($name))
{
echo '<div align="center" <span class="style2"><strong>ERROR:</strong> You did not enter your name, please go back and fill your name in the required field.</span></div>';
include 'quote.htm';
}
elseif(empty($email))
{
echo '<div align="center" <span class="style2"><strong>ERROR:</strong> You did not enter your email address, please go back and fill your email address in the required field.</span></div>';
include 'quote.htm';
}
elseif (empty($other))
{
echo '<div align="center" <span class="style2"><strong>ERROR:</strong> You did not enter any information about what you would like designing, please go back and fill in all the information possible in the required field.</span></div>';
include 'quote.htm';
exit();
}
else
And what i'd like to do is make them ALL come up if they are ALL left blank.. the way it is atm, only 1 of them comes up at a time.
For example, if 'name' and 'email' are left blank... only name will come up as an error message.