Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73845

HTML Forms POST method submits to Self but null array to action file

$
0
0

I am not a novice. This seems very simple. But I have been going crazy last two days.

I have suddenly started facing this issue.

A simple HTML form submits GET variables to itself and to action file. However, POST method returns NULL in the action file.

HTML test.php

<html>
<body>
<form action="test2.php" method="post">
<input type="text" name="yourname"><input type="submit" name="inpsub">
</form>
</body>
</html>

PHP

var_dump($_POST)

in test2.php Returns array(0) { }

Could it be a browser issue ?


Viewing all articles
Browse latest Browse all 73845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>