Page 1 of 1

passing variable to same page without post or get?

Posted: Tue Feb 24, 2004 4:50 pm
by Illusionist
i must really be dumb to ask this question, but for the love of god i cannot figure this out!!

Im trying to check for errors, and if it finds errors it wil add them to a string then redirect you back tot he page you came from... And there i would display the errors at the top of the page... Only i can't figure out how to pass that error string to back to the page without post or get... any suggestions?!

Posted: Tue Feb 24, 2004 5:23 pm
by AVATAr
sessions is the answer my dear friend...

check for the error, set a session variable, and return to the page you came from (with header)

in that page check for that session var and display it (inmediately after you display it unset that var).