Re: Html forms to php scripts

From: Date: Wed, 02 Apr 2003 22:00:15 +0000
Subject: Re: Html forms to php scripts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142031@lists.php.net to get a copy of this message
Ford, Mike [LSS] wrote:
-----Original Message----- From: VanZee, Timothy [mailto:T-VANZEE@govst.edu] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue between my html forms and php scripts. Html file (input.html) looks like this: <form action="input.php" method=post> <input type="text" name="ttt"> <p><input type=submit name=submit value="Submit"></p> </form> Php file (input.php) looks like this: <? echo $ttt; ?> I can input text (i.e. superman) and then click submit. The resulting php page returns: supermanttt=superman It seems to me that it must be something in the php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2
registered_globals is off by default in your version of PHP (its in the release notes) so, try replacing your echo statement with echo $_POST['ttt']; and see if that helps. -- Burhan Khalid phplist[at]meidomus[dot]com

« previous php.general (#142031) next »