1

I'm working with a domain where surprisingly $_POST array is always empty.

I've changed the script to another location (domain) and it does receive the parameters and I can print them.

What could be affecting it? httpaccess? any php.ini setting?

<?php
echo "POST<br>";
print_r($_POST);
echo "<br>--------------</br>";
javier_domenech
  • 5,995
  • 6
  • 37
  • 59

1 Answers1

0

From @icesar, answer

"Here's another possible cause -- my form was submitting to domain.com without the WWW. and I had set up an automatic redirect to add the "WWW." The $_POST array was getting emptied in the process. So to fix it all I had to do was submit to www.domain.com"

Community
  • 1
  • 1
javier_domenech
  • 5,995
  • 6
  • 37
  • 59