Run code when form is submitted

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

It looks like you print out the POST?

2 Likes

damn, I didnt even look, just assumed the worst. Am so embarrassed

2 Likes

Our old Server forum Team Lead @dklynn used to say: The hurrier I go, the behinder I get :wink:

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.