View Full Version : GET variable for text type always in url?
mnymkr
Jun 21st 2007, 2:57 pm
I am just curious here.
For radio and check boxes, if you do not enter a value their corresponding varialbe does not appear in the $_GET url
however with text boxes, it will appear at variable= why is this, if there is not value why not , not have it appear?
mrmonster
Jun 21st 2007, 3:10 pm
A radio\checkbox are activated when they are checked, nothing to pass before that, those elements are assigned value when they are activated.
A textbox always has a value, even if you don't type anything yourself.
Hehe, I hope that makes some sense:)
mnymkr
Jun 21st 2007, 4:51 pm
yeah that makes sense and i should have thought about so, no matter what a txt box varialbe will apear in the url even if it has no value?
mrmonster
Jun 21st 2007, 8:16 pm
Textbox always has a value, with "" being the default unless you enter something else.
krt
Jun 21st 2007, 9:24 pm
Yes, think of a textbox as a string (a string can have 0 length), and checkboxes/radio buttons almost like booleans, returning the value or just null.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.