Re: verify problem
| From: | PJ | Date: | Thu, 05 Mar 2009 23:44:41 +0000 |
| Subject: | Re: verify problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289423@lists.php.net to get a copy of this message | ||
Chris wrote:
>
>>> Are both first_nameIN AND last_nameIN longer than 0 chars?
>>>
>>> var_dump($_POST['first_nameIN']);
>>> var_dump($_POST['last_nameIN']);
>>>
>>> maybe you only filled in first_name or last_name but not both.
>>>
>> Well,
>> echo $first_nameIN, " ", $last_nameIN;
>> Prints out the whole name - without the if clause; and I've tried
>> several variations of ifs - none work.
>> Maybe there is something I don't understand about 'first_nameIN' and
>> $first_nameIN
>> but $first_nameIN = $_POST["first_nameIN"];
>> has been declared beforehand.
>
> Same for $last_nameIN I assume.
>
> What does var_dump of those 2 variables show? It should be something like
>
> string(5) "12345"
>
string 'jeremy' (length=6)
string 'basher' (length=6)
The problem was the blackets... was missing...I feel stupid again!
--
unheralded genius: "A clean desk is the sign of a dull mind. "
-------------------------------------------------------------
Phil Jourdan --- pj@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php