I'll start by saying that I've seen several similar questions asked but I've yet to find a solution to my problem.
I have the following on a page called test.php
.
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="UTF-8">
</head>
<body>
<p><?php print_r($_POST); ?></p>
<hr />
<p><?php echo empty($_POST) ? 'Empty' : 'Not empty'; ?></p>
<hr />
<form action="test.php" method="post">
<input id="example" type="text" />
<input id="submit" type="submit" value="Send" />
</form>
</body>
</html>
After submitting the form with text in the input, the $_POST array is always empty. Since several answers I've seen have mentioned PHP settings, I've copied my php.ini file below.
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
If it matters, I'm using GoDaddy hosting and haven't modified the default settings in any significant way. Any help would be appreciated.