June 12, 2002, 10:02:07 pm
<--PreviousNext -->

Using PHP with HTML Forms

Variable created in HTML forms are accessible in PHP scripts using the same name. If the method is set to POST then the variables are setup as env variables, if GET is used then the variables will be passed on the URL.

echo "<form action=\"index13.php\" method=POST>";
"<textarea name=user_text></textarea>";
"<input type=submit value=\"Go\">";