logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



PHP Not populating $_POST

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
dingernator



Joined: 23 Mar 2015
Posts: 2
Location: England, Hull

PostPosted: Mon 23 Mar '15 16:25    Post subject: PHP Not populating $_POST Reply with quote

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: 6202
Location: Germany, Next to Hamburg

PostPosted: Tue 24 Mar '15 17:22    Post subject: Reply with quote

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

PostPosted: Wed 25 Mar '15 14:30    Post subject: Reply with quote

That code shows this:

Array
(
[some] => value
[submitter] => submit
)
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6202
Location: Germany, Next to Hamburg

PostPosted: Wed 25 Mar '15 14:46    Post subject: Reply with quote

Well then $_POST works as it should.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1