pause the php script
Posted 11 September 2006 - 12:01 PM
It does not look possible thought. Well that's for submitting a form. Like this one you send a post. While sending it checks if you are logged in or not. If you are it submits the post. But if you're not wait for user to login and then continue to post.
Or should I keep the post datas on hidden values then check for the user's login and then redirect the user to the form page filled from hidden input fields and then ask the user to resubmit it?
Any other ways are welcome too.
Posted 11 September 2006 - 12:08 PM
You can do a quick check for the form that sees if there is any user data stored in variables, like
echo "<input name=blah type = text";
echo " value=" . $_SESSION['title'];
So if you put something along those lines in the original form, if they try to submit something without logging in you can send them somewhere to have them login and still have the stuff they wrote stored in variables.
Posted 11 September 2006 - 02:20 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users