Larryz Posted February 22, 2010 Share Posted February 22, 2010 I am not sure how these hidden fields are suppose to work but in the code file I have attached the $_POST['error'] is not being remembered between clicks. ? [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/192926-using-hidden-filelds/ Share on other sites More sharing options...
Renegade85 Posted February 22, 2010 Share Posted February 22, 2010 Here, you can try this code. I've assumed from my quick read through of the file that you are posting from a different page and that this is not a self-posting page The problem seems to be that you aren't actually storing the error value inside a PHP variable The way I code it anyway is: $err = $_POST['error'] ."hello"; Also, when making the variable a value inside a html tag, you just need to open and close PHP tags with the variable placed in between See the attached code [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/192926-using-hidden-filelds/#findComment-1016089 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.