RE: [PHP-WIN] Stupid problem: cannot send variables!

From: Date: Sun, 08 Sep 2002 02:53:58 +0000
Subject: RE: [PHP-WIN] Stupid problem: cannot send variables!
References: 1  Groups: php.install php.windows 
Request: Send a blank email to php-windows+get-15701@lists.php.net to get a copy of this message
Either switch on register_globals in php.ini (security implications however) or use echo $_GET['field'] instead of echo $field. HTH Rich -----Original Message----- From: Elias Lovén Larsson [mailto:larsson.elias@telia.com] Sent: 07 September 2002 11:32 To: php-install@lists.php.net; php-windows@lists.php.net Subject: [PHP-WIN] Stupid problem: cannot send variables! I am experiencing major problems with sending variables from forms to PHP scripts. Newbie error perhaps, but I have never ever witnessed anything like this before with PHP! I am running Apache 1.3.23 with PHP 4.2.3 (SAPI) on Windows XP. The URL and the code: http://corner.no-ip.com/me/profiles/test1.php ---------- <HTML> <HEAD> <TITLE>Untitled Document</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY> <FORM NAME="form1" ACTION="test1.php"> <P> <INPUT NAME="field" TYPE="text" ID="field"> </P> <P> <INPUT TYPE="submit" NAME="Submit" VALUE="Submit"> </P> </FORM> <? echo $field; $justanothervariable = "data"; echo $justanothervariable; ?> </BODY> </HTML> ---------- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#15701) next »