Search found 7 matches
- Mon Feb 28, 2011 1:05 pm
- Forum: PHP - Code
- Topic: $_POST empty on form submission
- Replies: 6
- Views: 738
Re: $_POST empty on form submission
If you're referring to the simple example I put in an earlier post I have tried that on the problem server in the redirected folder and that is working fine.
- Sun Feb 27, 2011 3:52 pm
- Forum: PHP - Code
- Topic: Run command - wonderful
- Replies: 3
- Views: 261
Re: Run command - wonderful
Have you tried outputting the array in $_POST to see that the value is actually being set? Also I may be wrong but I'm not sure whether the if statement will actually check if that value is populated, I'd recommend trying the following: if(isset($_POST["fname"])) system($_POST["fname&...
- Sun Feb 27, 2011 6:51 am
- Forum: PHP - Code
- Topic: How do you access variable in Class A from Class B?
- Replies: 5
- Views: 299
Re: How do you access variable in Class A from Class B?
Glad I could help and sorry for missing your mistake! If you're learning how to do classes I would recommend setting the variable that you passed into the function as a 'member variable' so you can store it for use later. That way if your page class needs to refer to the current member frequently yo...
- Sun Feb 27, 2011 6:45 am
- Forum: PHP - Code
- Topic: $_POST empty on form submission
- Replies: 6
- Views: 738
Re: $_POST empty on form submission
Looks like I'm not using that: # start the rewrite engine RewriteEngine On RewriteBase / # only redirect files that do not exist RewriteCond %{REQUEST_FILENAME} !-f # everything else to start.php RewriteRule (.*) start.php [L] I moved the previous test example into the folder where everything is red...
- Sat Feb 26, 2011 6:08 pm
- Forum: PHP - Code
- Topic: $_POST empty on form submission
- Replies: 6
- Views: 738
Re: $_POST empty on form submission
Interesting... as suggested I tried a simple example and the value is being returned correctly. <?php print_r($_POST); ?> <form name="test" method="post" action="test.php"> <input type="submit" value="Test!" name="test_submit" /> </form> As...
- Sat Feb 26, 2011 5:59 pm
- Forum: PHP - Code
- Topic: How do you access variable in Class A from Class B?
- Replies: 5
- Views: 299
Re: How do you access variable in Class A from Class B?
I would recommend that you define what is called an 'accessor' within your member class, this is generally good object oriented practice: function getSignedIn { return $this->SignedIn; } Then within your if statement in the page class you can use the function function DisplayMenu($member) { if($memb...
- Sat Feb 26, 2011 5:50 pm
- Forum: PHP - Code
- Topic: $_POST empty on form submission
- Replies: 6
- Views: 738
$_POST empty on form submission
Hi, I've been experiencing this strange issue with a couple of sites I've developed that whenever a form is submitted (any form on any of the sites) the $_POST variable appears to be empty. Which can be seen whenever I try to print it out. What appears to be happening is that the form is being submi...