How to post text submited in a form.

A

Anonymous

Guest
You can just put a submit button, and from there, the text is passed to the next page as a variable with the same name as your text box

Code:
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> 
Name: <input type="text" name="name" size="20"></p>
<Input type='submit' name = 'submit' value = 'Submit'>

If ($_POST['submit']){
echo $_POST['name'];
}
edited by Redcircle

something like this should do
but i'm still a newb :)
hope it helps
 
Back
Top