Verander dit -
// insert a row
$stu_name = "Joe";
$stu_email = "[email protected]";
$stu_city = "Joeland";
$stmt->execute();
// insert another row
$stu_name = "Mary";
$stu_email = "[email protected]";
$stu_city = "Maryland";
$stmt->execute();
naar dit -
// insert a row
$stu_name = $_POST['stu_name'];
$stu_email = $_POST['stu_email'];
$stu_city = $_POST['stu_city'];
$stmt->execute();
Uw formulier plaatst de waarden in de POST-array van PHP en u kunt ze openen via de eigenschap name van het formulier.