The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Form Variables in adminCP
I have created a simple plugin where a staff members fills out a form, and the information gets inserted into a database. Simple five column table. However, for some reason I am unable to pass variables from the form page to the second page where I can do the mysql insert statement.
Here's my form page (ignore all my debugging information). PHP Code:
PHP Code:
Right now I'm just trying to get it to display the variables from the form page, I can handle the sql queries, but I cannot get the form variables to pass onto the second page, they always come over as blank. I had thought about creating a global variable, but if they're getting pass through a form, they should automatically be transferred. |
#2
|
|||
|
|||
I seem to remember some HTML thing about combining forms and tables, I think you have to have the table completely within the form. So maybe try moving the print_form_header to the beginning?
ETA: also, don't you need to get the varaibles from the input? If you call one of the "clean" functions in your second page script it will check them and put them in $vbulletin->GPC. Here's a small section from admincp/subscriptions.php: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|