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.
Source:
<?php

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