Superian Posted February 19, 2008 Share Posted February 19, 2008 Can anyone explain to me the importances of using the input tag with a hidden attribute? How would I access the variable using PHP? I would really appreciate an example. Thanks! Link to comment https://forums.phpfreaks.com/topic/91995-i-do-not-understand/ Share on other sites More sharing options...
cooldude832 Posted February 19, 2008 Share Posted February 19, 2008 Hidden variables are used for a few different reasons. Some are interchangeable with sessions, but its really a coding preference (the *ed ones are interchangeable with sessions) 1) Carry across the table id of the thing they responding to* 2) Allow javascript math to be stored in your form 3) Duplicate data on pages that are to be preview pages* 4) Many other can't think right now* To view it is just like visible post or get vars $_GET['Input Name'] or $_POST['Inpt Name'] The only advantage is you can't see em. so users can't alter them easily. Link to comment https://forums.phpfreaks.com/topic/91995-i-do-not-understand/#findComment-471168 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.