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! Quote Link to comment 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. Quote Link to comment 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.