korsohill Posted August 23, 2009 Share Posted August 23, 2009 Hey guys, just wondering if it is possible to have multiple entries in a form change (namely some <select> lists) depending on what is chosen in a different <select> list. for example:<label>Hi</label><select><option>1</option><option>2</option></select><label>Hi 1</label><select><option>3</option><option>4</option></select><label>Hi 2</label><select><option>3</option><option>4</option></select>Depending on what is chosen in the first entry (1 or 2), either "Hi 1" or "Hi 2" will be shown later in the page. The other will not be there.Update (11:35):I am also wondering how you get webpage URLs such as http://www.example.com/index.php?=hello and such. How do these work? How do you make one? Link to comment Share on other sites More sharing options...
Synook Posted August 23, 2009 Share Posted August 23, 2009 You can do that with JavaScript - hide the other two lists when the page loads (e.g. display:none), then have an onchange handler for the first select (select.onchange = handler), and in the handler display one of the other lists depending on which value was selected. I am also wondering how you get webpage URLs such as http://www.example.com/index.php?=hello and such. How do these work? How do you make one?You use the querystring. http://www.php.net/manual/en/reserved.variables.get.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.