Re: Simple form not passing variables, Why??
| From: | Cynic | Date: | Fri, 12 Jan 2001 23:43:55 +0000 |
| Subject: | Re: Simple form not passing variables, Why?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34318@lists.php.net to get a copy of this message | ||
you have register_globals off in your php.ini or httpd.conf
or .htaccess. either use $HTTP_GET_VARS['name'] or turn the
setting on.
At 00:36 13.1. 2001, jeff fitzmyers wrote the following:
--------------------------------------------------------------
>The code below does not work. What could be causing
>this?? php pages do come up, and I can retrieve SQL
>data. The header seems okay: test.php?name=Bob and if
>I define a variable on the same page I can use it.
>
>Please enter user name here:
><FORM>
> <INPUT TYPE=text NAME=name>
> <INPUT TYPE=submit VALUE=Submit>
></FORM><BR>
>
>you typed:
><?
> echo ($name);
>?>
>
>Linux 2.2.14
>PHP/4.0.3pl1
>'./configure' '--without-gd' '--with-apxs'
>'--with-mysql=/usr' '--with-pgsql' '--with-imap'
>
>Ideas??
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Photos - Share your holiday photos online!
>http://photos.yahoo.com/
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz