Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP Not populating $_POST |
|
Author |
|
dingernator
Joined: 23 Mar 2015 Posts: 2 Location: England, Hull
|
Posted: Mon 23 Mar '15 16:25 Post subject: PHP Not populating $_POST |
|
|
Hi all,
I'm having a problem with PHP not populating the $_POST variable. I've been told it will probably be something to do with the config, but it was working about a week ago, and now it isn't.
Can anybody give me some indication of how to fix this?
Thanks in advance.
Ben |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 24 Mar '15 17:22 Post subject: |
|
|
Does this work?
test.php
Code: |
<?php
if(isset($_POST)){
echo '<pre>';
print_r($_POST);
echo '</pre>';
}
?>
<form action="test.php" method="post">
<input type="hidden" name="some" value="value">
<input type="submit" name="submitter" value="submit">
</form>
|
|
|
Back to top |
|
dingernator
Joined: 23 Mar 2015 Posts: 2 Location: England, Hull
|
Posted: Wed 25 Mar '15 14:30 Post subject: |
|
|
That code shows this:
Array
(
[some] => value
[submitter] => submit
) |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 25 Mar '15 14:46 Post subject: |
|
|
Well then $_POST works as it should. |
|
Back to top |
|
|
|
|
|
|