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 Link to comment https://forums.phpfreaks.com/topic/170994-sticky-contact-form/ 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 Link to comment https://forums.phpfreaks.com/topic/170994-sticky-contact-form/#findComment-901846 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']; ?>" /> Link to comment https://forums.phpfreaks.com/topic/170994-sticky-contact-form/#findComment-901847 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.