I have a HTML form, with hidden fields, that are populated by PHP (this part is working, seen when you View Source on the page with the form HTML)
the action is set to POST to process.php, process.php is set to return the POST data in an echo, but they are always blank.... I do not understand why
If you F5 on the process.php, IE tells you its going to resubmit the data, so data is being parsed. If I use GET on the form instead, the values can be seen in the URL, but I wish to keep them hidden
the form HTML/PHP combo (working):
// form.php
print "
<form name=\"$machinename\" action=\"process.php\" method=\"POST\">
<input type=\"hidden\" name=\"random\" value=\"$random2\">
<input type=\"hidden\" name=\"machinename\" value=\"$machinename\">
<input type=\"hidden\" name=\"ITSS\" value=\"$cn2\">
<input type=\"hidden\" name=\"takemeback\" value=\"$url\">
middle section removed, no user input fields in this form at all, just hidden fields
<input type=\"image\" name=\"button\" src=\"images/setreturn1.gif\" onClick=\"return confirm('Please confirm that $machinename has now been returned.');\">
</form>
";
// View Source results, from IE - proof $'s are being populated
<input type="hidden" name="random" value="COOL31472">
<input type="hidden" name="machinename" value="UKW1TESTMACHINE">
<input type="hidden" name="ITSS" value="Indo">
<input type="hidden" name="takemeback" value="http://localhost/form.php">
// process.php
<?php
$username = $_POST["ITSS"];
echo "Hello $username";
?>
Running PHP on Windows, using Apache
Thanks for any help