RE: [PHP] Passing variables,,, I know its not this hard.

From: Date: Mon, 09 Apr 2001 16:14:07 +0000
Subject: RE: [PHP] Passing variables,,, I know its not this hard.
Groups: php.general 
Request: Send a blank email to php-general+get-47821@lists.php.net to get a copy of this message
Hi Pass the variable as a parameter (without quotes): <form name="myEditForm" action="edit.phtml?number=<?echo $exedit?>" method="post" onsubmit="return validate()"> and then in the next page refer to the variable $number, OR in the next page just refer to the variable $exedit (which gets posted as a form variable) - This in PHP4 Cheers Rudolf Visagie rudolf@qedi.co.za -----Original Message----- From: Curtis [mailto:curtis_c@bellsouth.net] Sent: 09 April 2001 06:09 To: php Subject: [PHP] Passing variables,,, I know its not this hard. Hello, Could someone please tell me where I am going wrong here. I have an HTML form and I want to past the input from a text box to the next page url to connect to my mysql database. Here is where I am at now.... <form name="myEditForm" action="edit.phtml?number=<? '$exedit' ?>" method="post" onsubmit="return validate()"> <input type="text" name="exedit" size="20"> <input type="submit" value="Submit" name="submit"> </form> the onsubmit is a javascript for validation. I have tried this every which way, but the correct way. Could someone point me in the right direction. Thanks Curtis -- 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

« previous php.general (#47821) next »