I have an issue about HTML post to PHP script. But the values are not posted. My form.php file codes are;
<form action="http://xxxx/valid.php" method="post">
Name: <input name="Name" value='' type="text" />
Sur Name: <input name="SurName" value='' type="text" />
<input id="submit" type="submit" value="Send" />
</form>
and valid.php codes are;
<?php
echo $_POST["Name"];
echo $_POST["SurName"];
foreach($_POST as $key=>$value)
{
echo "$key=$value";
}
die();
?>
I get the blank page and I get this error.
Undefined index: Name Undefined index: SurName
I working on PHP 5.6 What is wrong?
Its Solved ! Changed the http://xxxx/valid.php to /valid.php and its worked.