All form variables will be in the $ _GET or $ _POST array in php (depending on which method you use to submit the form.
The text box or check box should be called as follows:
<!-- HTML form --> <form method="post" action="collect.php"> Comments: <textarea name="comments" cols="20" rows="5"></textarea> <br/> Tick to select <input type="checkbox" name="checker"/> </form> // collect.php $comments=""; if(isset($_POST["comments"])) { $comments = $_POST["comments"]; } $checker=""; if(isset($_POST["checker"])) { $comments = $_POST["checker"]; }
JP19
source share