Freedom-n-Democrazy Posted October 7, 2011 Share Posted October 7, 2011 Is it possible to set a TEXTAREA or INPUT element to 0 by 0 px? I am trying to carry over information in a form which is not suppose to be vissible to the viewer, and the bloody INPUT and TEXTAREA boxes only shrink to about 5 by 5px when I set them both to 0px. I tried to <DIV class="id" name="id" value="<?php echo $id; ?>"></DIV> but nope. I didn't think it would. Sure, I could probably absolute position them in CSS to margin-left:-500000px and set overflow to hidden, but thats just cheap. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/248630-carrying-over-hidden-data-in-a-form/ Share on other sites More sharing options...
Freedom-n-Democrazy Posted October 7, 2011 Author Share Posted October 7, 2011 Never mind, I just set it to margin-left: -44000px; problem solved! LOL... I'll fix this another day its not critical its just a cosmetical thing. Link to comment https://forums.phpfreaks.com/topic/248630-carrying-over-hidden-data-in-a-form/#findComment-1276836 Share on other sites More sharing options...
Pikachu2000 Posted October 7, 2011 Share Posted October 7, 2011 Why not use <input type="hidden" or even store the values in a $_SESSION var? Link to comment https://forums.phpfreaks.com/topic/248630-carrying-over-hidden-data-in-a-form/#findComment-1276840 Share on other sites More sharing options...
Freedom-n-Democrazy Posted October 7, 2011 Author Share Posted October 7, 2011 The $_SESSION wouldn't work for this case, however, I wasn't aware there was a hidden option with inputs. So awesome, thats gonna help allot! Thanks dude! Link to comment https://forums.phpfreaks.com/topic/248630-carrying-over-hidden-data-in-a-form/#findComment-1276846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.