dbnet Posted July 6, 2011 Share Posted July 6, 2011 To those of kind hearts to respond to my qtn here. i dont want my users to retype a long form over again because they made mistake at first. please i need a php code that retain fields data. thank you in anticipation for your help Quote Link to comment https://forums.phpfreaks.com/topic/241252-hlep-urgently-needed-please/ Share on other sites More sharing options...
Pikachu2000 Posted July 6, 2011 Share Posted July 6, 2011 Google "php sticky forms" Quote Link to comment https://forums.phpfreaks.com/topic/241252-hlep-urgently-needed-please/#findComment-1239217 Share on other sites More sharing options...
wildteen88 Posted July 6, 2011 Share Posted July 6, 2011 Set the form up so it submits to itself. Then in your form field value attribute you'd do something like this value="<?php isset($_POST['field_name_here']) ? echo $_POST['field_name_here'] : ''; ?>" Quote Link to comment https://forums.phpfreaks.com/topic/241252-hlep-urgently-needed-please/#findComment-1239218 Share on other sites More sharing options...
dbnet Posted July 6, 2011 Author Share Posted July 6, 2011 wildteen88 i thank u very much for ur quick response. I know i could do it that way if i write the php code in the same page where am having the form but i dont want to write it that way. please is there any other way? once again thank you for ur help Quote Link to comment https://forums.phpfreaks.com/topic/241252-hlep-urgently-needed-please/#findComment-1239234 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.