TRIVIAL!- Extra assigment of $_POST
Posted: 27. April 2013 21:25
While moving on the old php scripts working with Apache1.3 and php4.3
-> to the XAMPP (apache2.4 php5) - the following problem arose.
In (XAMPP) a simple php script containing a form and sending your entries
back to the script I have to load them again with the predefined variables $ _GET or $ _POST
-> to the XAMPP (apache2.4 php5) - the following problem arose.
In (XAMPP) a simple php script containing a form and sending your entries
back to the script I have to load them again with the predefined variables $ _GET or $ _POST
- Code: Select all
$enterd_value = $_POST['enterd_value']; <---- is it really needed ?
if ($enterd_value)
echo "$enterd_value";
else
print '<FORM action="script.php" method="POST">';
print '<INPUT type="text" name="entered_value">';