![]() |
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"> Code:
<?php 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? |
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. |
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. |
All times are GMT. The time now is 10:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|