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 [EMAIL PROTECTED] -----Original Message----- From: Curtis [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]