I have a form
<form name="rack" method="GET" action="insert_devices.php">
when it submitted, the URL changes to
insert_devices.php?Location=Tech+Control&Elevation=&CB=&Title=dftdf&PP=&NOS=45
but when I print out the GET
echo "<br>GET[] <pre>";print_r($_POST);echo "</pre>";
It appears blank.
On the submitted page, I have
if ($_SERVER['REQUEST_METHOD'] == "POST"){
...
...
} else {
..
...
}
shouldn’t the code inside the else block get executed