The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Best method to pass variables...
How would I pass variables in vB where the template only redirects to the page that will actually execute some functions that need the variables?
All I am using in the template that redirects after submit is a meta tag, I want to pass all variables through, but I don't want to make an extra submit button. Any Methods? Thanks |
#2
|
||||
|
||||
In the URL to the file, add ?yourvariable=xxx
Where you have $yourvariable in the PHP file. For example, use this URL: http://www.yoursite.com/yourfile.php?yourvariable=xxx&secondvariable=yyy |
#3
|
||||
|
||||
umm, that wouldn't work because some multi line text will be passed.
|
#4
|
||||
|
||||
Oh, I see... why don't you just call the same template from the PHP file so the variables are included?
|
#5
|
||||
|
||||
I don't get it?
|
#6
|
||||
|
||||
ie. instead of redirecting from a template, redirect to the PHP file which calls that template.
Just tell us what you're trying to do and see if we can help. |
#7
|
||||
|
||||
Well I have modified Lesanes store hack alot and it consits of 3 files, store.php (skeleton of operation) store2.php runs all functions store3.php (informs the user after purchase, providing more info on how to go about...)
In store2.php it uses a tempalte where they fill out there address and other mailing details, on step to it confirms it, while it confirms when they click the confirm button I want it to go to a template that will redirect to the last step because if it continues on with the execution of queries on the step right after the confirm, if they refresh before the page loads they can get 2 items or 3 etc. |
#8
|
||||
|
||||
Does anyone know if a HEADER Location redirect in php would work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|