The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Question about 'print_stop_message'
I am submitting info through a form in AdminCP. If the script fails my error check, I use 'print_stop_message' to display an error message and then redirect back to the original script.
Problem is the information previously entered in the form is no longer there. How can I get the form to remember what was previously entered so Admin doesn't have to enter it again? I know it's possible as most forms in vbulletin's admincp have this feature, i just can't figure out how it's done. I was thinking of puting all the field values into a session array, but there's got to be an easier way. Anyone know? |
#2
|
||||
|
||||
If you redirect using JavaScript (which IIRC is the same as hitting back) then you won't lose your form data.
Code:
history.go(-1); |
#3
|
||||
|
||||
i tried your suggestion (thanks) but it didn't work, however i did figure outthe solution, rather simple which never occurred to try before.
I was using the following which was erasing the data upon returning to the page: PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|