cheat-master30
06-13-2008, 10:33 PM
I'm trying to change over a form and posted information from register globals variables to using superglobals, and have removed the errors, but the data isn't actually now being posted. I currently have this as the form
<form action="CodeOutput.php" method="POST">
<select name="CodeT">
[options here]
</select>
<select name="Code">
[options here]
</select>
<input type="text" name="Value" />
<input type="text" name="Code1" />
<input type="text" name="Code2">
<input type="submit">
</form>
And this as the PHP script it's sent to:
<?php
print '$_POST["CodeT"]$_POST["Code"] ';
print '000000$_POST["Value"]<br />';
print '$_POST["Code1"]<br />';
print '$_POST["Code2"]<br />';
print 'D2000000 00000000';
?>
(Don't ask why the format, the purpose of the form and the codes generated need to be in the format of eight characters then a space, then eight characters then a line of the like and ending in the D2 thing...)
It worked fine with register globals on and the values as variables sent from the form, but as soon as I tried to use the superglobals for PHP5 and PHP6 compatibility, it stopped actually sending the data. Any ideas why or how to fix this?
<form action="CodeOutput.php" method="POST">
<select name="CodeT">
[options here]
</select>
<select name="Code">
[options here]
</select>
<input type="text" name="Value" />
<input type="text" name="Code1" />
<input type="text" name="Code2">
<input type="submit">
</form>
And this as the PHP script it's sent to:
<?php
print '$_POST["CodeT"]$_POST["Code"] ';
print '000000$_POST["Value"]<br />';
print '$_POST["Code1"]<br />';
print '$_POST["Code2"]<br />';
print 'D2000000 00000000';
?>
(Don't ask why the format, the purpose of the form and the codes generated need to be in the format of eight characters then a space, then eight characters then a line of the like and ending in the D2 thing...)
It worked fine with register globals on and the values as variables sent from the form, but as soon as I tried to use the superglobals for PHP5 and PHP6 compatibility, it stopped actually sending the data. Any ideas why or how to fix this?