You should probably replace $name == with strlen($name) 1.
Also, you should probably used $error .= instead of $error = so that you can list all
the errors instead of just the last one.
Ryan
-Original Message-
From: Addison Ellis [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27,
On Mon, Jan 27, 2003 at 06:26:06PM -0600, Addison Ellis wrote:
hello and thank you for your time.
will the below work to check if one field or the other is
filled in upon submission? either contact_phone or contact_email is
required but not both. best, addison
I would use something
de 2003 0:29
To: Addison Ellis
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] elseif with header
if ($category = 2 and $subcategory = 52)
{
header(Location:
http://www.vanderbilt.edu/register/ca/vacation_rentals.php;);
}
elseif ($category = 2 and $subcategory = 50)
{
header(Location
if ($category = 2 and $subcategory = 52)
{
header(Location:
http://www.vanderbilt.edu/register/ca/vacation_rentals.php;);
}
elseif ($category = 2 and $subcategory = 50)
{
header(Location:
http://www.vanderbilt.edu/register/ca/rentals.php;);
} , etc.
for some reason all the elseifs
You can just as simply include the files you need, there is no need for
using the headers.
Did the script return any errors?
-Oorspronkelijk bericht-
Van: Addison Ellis [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 21 januari 2003 1:19
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP-DB] elseif
You probably have error reporting turned off in your php.ini file or you
may be directing errors into your log file, try checking there.
Why are you tacking or die(mysql_error()) on the end of each of your
query assignments? You're just assigning a string to a variable so
there's nothing to
To: Andrea Caldwell
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] elseif statement syntax
You probably have error reporting turned off in your php.ini file or you
may be directing errors into your log file, try checking there.
Why are you tacking or die(mysql_error()) on the end of each of your