The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need to know how to fix this
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
Code:
<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> Code:
<?php print '$_POST["CodeT"]$_POST["Code"] '; print '000000$_POST["Value"]<br />'; print '$_POST["Code1"]<br />'; print '$_POST["Code2"]<br />'; print 'D2000000 00000000'; ?> 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? |
#2
|
|||
|
|||
Well for starters you can't have variables in single quotes.
So I would suggest using code like this. PHP Code:
Here is a article to use as reference. |
#3
|
||||
|
||||
If you're wondering why there wasn't any security, it's because as a script while it was/is going to be used on my site, it won't actually submit to a database, but it's just ran whenever someone submits a form, with nothing saved to the server via a post request.
But I'll try what you said, and thanks. Edit: Worked a treat, thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|