Looking for some PHP scripting help?

Craighton

New member
I want to create a form where on one page someone will enter text into a box and once they press the submit button it will go to another page and it will take the text that they entered and give them a piece of code back with the value they entered inside of it
 
Make a form, and in the form tag put action="nameofphppage.php"

Also add method="post" or method="get". get puts the info in the browsers address bar, so it's good for things like searches. post hides the data, so it's good for lots of other things, like log in boxes.

Then to read the variables in php, they are stored in $_GET['X'] or $_POST['X'] where X is the name of the field in your form.
 
Make a form, and in the form tag put action="nameofphppage.php"

Also add method="post" or method="get". get puts the info in the browsers address bar, so it's good for things like searches. post hides the data, so it's good for lots of other things, like log in boxes.

Then to read the variables in php, they are stored in $_GET['X'] or $_POST['X'] where X is the name of the field in your form.
 
Back
Top