wwedude Posted August 23, 2008 Share Posted August 23, 2008 I have a form, which recording process, when the users get there the data is all filled up using values and php variables. I have set it to readonly, so they see this data, can't edit it, and then they press submit. Is there a way I could not show the values, and just have a submit button. Thanks! Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/ Share on other sites More sharing options...
JasonLewis Posted August 23, 2008 Share Posted August 23, 2008 <input type="hidden" name="field_name" value="field value" /> Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-623655 Share on other sites More sharing options...
hip_hop_x Posted August 27, 2008 Share Posted August 27, 2008 use that input in a form tag... Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627065 Share on other sites More sharing options...
TheFilmGod Posted August 27, 2008 Share Posted August 27, 2008 why don't save the data in a php session? this would make life 100 times easier. Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627205 Share on other sites More sharing options...
Ken2k7 Posted August 27, 2008 Share Posted August 27, 2008 why don't save the data in a php session? this would make life 100 times easier. Not necessarily. Sessions do expire. Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627292 Share on other sites More sharing options...
TheFilmGod Posted August 28, 2008 Share Posted August 28, 2008 why don't save the data in a php session? this would make life 100 times easier. Not necessarily. Sessions do expire. They may expire, but as I understand, as long as the browser hasn't been shut off, the session should be valid. Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627425 Share on other sites More sharing options...
Ken2k7 Posted August 28, 2008 Share Posted August 28, 2008 They may expire, but as I understand, as long as the browser hasn't been shut off, the session should be valid. In which case, that won't make anyone's life 100 times simpler. Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627511 Share on other sites More sharing options...
TheFilmGod Posted August 28, 2008 Share Posted August 28, 2008 It does boil down to personal choice whether something is easier or simpler, but there's a HUGE security risk in using hidden forms. Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627521 Share on other sites More sharing options...
haku Posted August 28, 2008 Share Posted August 28, 2008 That there is. Anyone can go in there and change the data held in the hidden field, and then submit the form. I personally am in agreement with theFilmGod that a session would probably be a better solution for this. Link to comment https://forums.phpfreaks.com/topic/120964-hidden-forms/#findComment-627636 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.