sethupathy Posted June 15, 2007 Share Posted June 15, 2007 i have completed my web form,connection works fine (thanks guys ) i am now in validation , but i have a question, when i click send and i return to my web form (back) all data is gone from the from how do i make the data editable until the browser is closed? by using cookies? i am not familiar with that is there other way to make a web form data stored until a session ends. i do not use any logon to id the user i just want the form saved thank you for the help Quote Link to comment https://forums.phpfreaks.com/topic/55666-web-form-question/ Share on other sites More sharing options...
pocobueno1388 Posted June 15, 2007 Share Posted June 15, 2007 You could use sessions to keep the information saved....sessions expire as soon as the browser is closed, so it sounds like that is what you are wanting. If you need further explanation on this, just say so. Quote Link to comment https://forums.phpfreaks.com/topic/55666-web-form-question/#findComment-275061 Share on other sites More sharing options...
rtpmatt Posted June 15, 2007 Share Posted June 15, 2007 yeah, session vars are easy simply use them like so: $_SESSION['varname'] = $oldvar now you can use $_SESSION['varname'] just like any other var, but its stored till the session ends. hope that helps -matt Quote Link to comment https://forums.phpfreaks.com/topic/55666-web-form-question/#findComment-275075 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.