RE: [PHP] re: undefined variable
| From: | ray dot hauge at americanstudentloan dot com | Date: | Sun, 30 Apr 2006 23:27:39 +0000 |
| Subject: | RE: [PHP] re: undefined variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235170@lists.php.net to get a copy of this message | ||
> -------- Original Message --------
> Subject: [PHP] re: undefined variable
> From: "Smart Software" <info@smart-software.org>
> Date: Sun, April 30, 2006 1:50 pm
> To: php-general@lists.php.net
>
> //get content of textbox
> $q = isset($_REQUEST['$textbox']) ? $_REQUEST['$textbox'] : 0;
You should use $_REQUEST[$textbox] or $_REQUEST["$textbox"]. Variables
are not converted within a single-quoted string.
HTH,
Ray