MySQL Forums
Forum List  »  PHP

Re: form handling
Posted by: Jonathan Stephens
Date: May 10, 2005 07:28PM

(Note: This isn't really a MySQL-related question. But I'll answer it anyway.)

What $submit 'command'? That's a variable name.

That being said... Given the text input txt1... If your form is uses the POST method, then you'd access the value on the receiving page as $_POST['txt']. If it uses the GET method, then you'd access the value as $_GET['txt1']. I recommend using method="POST" for forms, so the form field values don't show up in the querystring.

Jon Stephens
MySQL Documentation Team @ Oracle

MySQL Dev Zone
MySQL Server Documentation
Oracle

Options: ReplyQuote


Subject
Written By
Posted
May 08, 2005 11:12AM
Re: form handling
May 10, 2005 07:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.