Tell me how to write a PHP script to get information entered into a text box and...

  • Thread starter Thread starter iJosh
  • Start date Start date
<?
if($_SERVER['REQUEST_METHOD'] == "POST"){
print_r($_POST);
}
else{
?>
<form action="<? echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="comment"><fieldset><legend>Vote if you like this page</legend><input type="radio" name="vote" value="Yes"> Yes <input type="radio" name="vote" value="No"> No</fieldset><input type="submit" value="submit"></form>
<?
}
?>
 
Back
Top