Jesper Posted August 12, 2008 Share Posted August 12, 2008 Hey everyone, for a registration form on a website I'm creating together with somebody else, I want the website to get back all original post data from the form when somebody submitted something that was wrong (for example, wrong file type). Now it just resets all the fields, how can I fix this? Thanks in advance, Jesper Link to comment https://forums.phpfreaks.com/topic/119271-solved-get-post-data-back/ Share on other sites More sharing options...
waynew Posted August 12, 2008 Share Posted August 12, 2008 If the PHP that handles the form is on the same page you can simply do this: <input name="email" type="text" value="<?php if(isset($_POST['email'])) echo htmlentities($_POST['email']); ?>"> Link to comment https://forums.phpfreaks.com/topic/119271-solved-get-post-data-back/#findComment-614393 Share on other sites More sharing options...
Jesper Posted August 13, 2008 Author Share Posted August 13, 2008 Thanks . Link to comment https://forums.phpfreaks.com/topic/119271-solved-get-post-data-back/#findComment-615525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.