RE: [PHP] problem transferring a variable using POST
| From: | Bertrand Moulard | Date: | Thu, 09 Oct 2003 16:02:49 +0000 |
| Subject: | RE: [PHP] problem transferring a variable using POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165615@lists.php.net to get a copy of this message | ||
you might try to do some processing on the value
get the HTTP_POST_VARS[...], put it in a variable and see its type
(gettype()). Might give you some hints.
-----Original Message-----
From: Davy Campano [mailto:dcampano@leeuniversity.edu]
Sent: 09 October 2003 16:57
To: php-general@lists.php.net
Subject: [PHP] problem transferring a variable using POST
I am having a problem with a form. I am trying to have a form pass a
variable so that I can update an item. I think the problem is that the
variable (ticketed) is being read as text instead of a number. These
are the tests I have run.
This statement works:
$sql = 'UPDATE wo SET status = 1 WHERE ticket = 1'
This statement does not:
$sql = 'UPDATE wo SET status = 1 WHERE ticket =
$HTTP_POST_VARS[ticketed]'
Any suggestions...
If I do "echo "$HTTP_POST_VARS[ticketed]";
It returns a 1