hi,
I'd be very very glad if anyone could help me in the problem i've come to face:
i'm building a web-site with a user-login system. it also provides registration of new users. i used the php's session handling functions, and everything was just going fine. i did the login and the registration, which both forward you (back) to the main page, where now you can do several more things. and it was only then when i switched to testing the web site, which indicated quite a programmer's nightmare of a problem:
if you click on the back button, after a registration, the browser DOES what it is expected, namely adds the 'new' record AGAIN to the database.
i was advised to try to use the header functions of php, especially those that prevent caching. i did that but nothing really happened. and by the way i was quite scoobied over which function to call first, coz both the session_start() and the header(...) functions are expected to be called like first thing in a PHP page.
i tried manipulating the 'history' object of javascript but on the one hand i couldn't solve it and on the other hand i don't think this really is a problem to be solved in javascript, though i really like javascript.
HHHH EEEE LLLL PPPP
cheers in advance
nick