coltrane Posted August 19, 2009 Share Posted August 19, 2009 How do i make a simple contact form "sticky"? I need the data input to remain (or reload) if someone leaves and comes back or there is an error. Thanks Quote Link to comment Share on other sites More sharing options...
TeNDoLLA Posted August 19, 2009 Share Posted August 19, 2009 I am not sure what you mean by that if someone leaves and comes back. But in case of error you can do like this: 1. When user submits the form, save the data in sessions. 2. If there was error, show error message and fetch the data from sessions and echo in the input field Quote Link to comment Share on other sites More sharing options...
yami007 Posted August 19, 2009 Share Posted August 19, 2009 <input type="name" value="<?php echo $_POST['name']; ?>" /> Quote Link to comment 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.