I am trying to collect data from the user in a form and display the data back to them.
I am using WAMP.
Here is my html code
<FORM METHOD="POST" ACTION="submit.php">
<INPUT type="text" name="URL" size=17 value="http://">
<INPUT type="text" name="user" size=17>
<INPUT type="text" name="email" size=17>
<INPUT type="submit" value="Submit" name="submit"/>
<INPUT type=reset value="Clear">
</form>
Here is my submit.php code:
<?php
if (isset($_POST['URL'])){
echo "set";
}
else
{
echo "not set";
}
?>
When I execute this, I am always getting "not set" as the output.
$_POST, not$POST