Jump to content

Adding Required Imputs to this page


Zer0Cam

Recommended Posts

if(!$_POST['submit']){
echo "<form method=post action=thispage.php>\n";
echo "Teacher Name: <input type=text name=tname><br>\n";
echo "Room #: <input type=text name=room><br>\n";
echo "<input type=submit name=submit value=go>\n";
echo "</form>\n";
}else {
$teacher = $_POST['tname'];
$room = $_POST['room'];

  if($teacher && $room){
  //do this
  }else {
  //not supplied
  }
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.