Re: 2 conditions why wont they work??
| From: | Bogdan Stancescu | Date: | Mon, 11 Feb 2002 04:10:14 +0000 |
| Subject: | Re: 2 conditions why wont they work?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84223@lists.php.net to get a copy of this message | ||
Most unusual indeed. The quick/ugly solution is to trim() the incoming $clientID.
But that's not appropriate if you expect valid entries starting with a space (well,
two spaces in your case) :)
Gotta hit the sack now - check out the time over here! :)
Bogdan
Brad Wright wrote:
> Bogdan,
> It appears that $clientID is saved with a space at the start .. when i check
> for its value (using session_encode() ) it gives that value " test 3" when
> it should be "test 3".
>
> <input type="hidden" name="XclientID" value="<?php echo
> $row["clientID"];?>">
>
> this is the extract form the form on the previous page which sets $clientID.
>
> I am sure that a space is being added but cant find where.
>
> Thanks for yr help,
> Brad