![]() |
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? |
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); |
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:
|
All times are GMT. The time now is 04:12 AM. |
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:
|