razec
01-16-2010, 05:33 PM
I created my own PHP-based form that integrates with vBulletin. When the form posts, everything has a value of "S" which makes absolutely no sense. I'll have a text input field called "CompanyName", and then in the code to process the form I'll have:
echo $_POST['CompanyName'];
The value will show as "S". It's like this for all of my fields.
I'm using the method described in this post (https://vborg.vbsupport.ru/showthread.php?t=228112) to generate my form/page. The same file that generates the form is also the one that handles the processing. I'm just using a switch() to check the value of a hidden field that determines if the form has been submitted or not. Of course, that doesn't work right either because the value of that hidden field is also posting as "S", even though if I view source on the form it shows the correct value.
Any ideas why this is happening?
EDIT: I should mention, if I change the target of the form to a PHP file that does not use any of the vBulletin stuff from that post mentioned above (no template or anything, just straight output), the values display properly. I'm assuming it's something that vBulletin does to forms?
echo $_POST['CompanyName'];
The value will show as "S". It's like this for all of my fields.
I'm using the method described in this post (https://vborg.vbsupport.ru/showthread.php?t=228112) to generate my form/page. The same file that generates the form is also the one that handles the processing. I'm just using a switch() to check the value of a hidden field that determines if the form has been submitted or not. Of course, that doesn't work right either because the value of that hidden field is also posting as "S", even though if I view source on the form it shows the correct value.
Any ideas why this is happening?
EDIT: I should mention, if I change the target of the form to a PHP file that does not use any of the vBulletin stuff from that post mentioned above (no template or anything, just straight output), the values display properly. I'm assuming it's something that vBulletin does to forms?