SkyRanger Posted January 12, 2008 Share Posted January 12, 2008 I have been searching all over the net for a fix to my problem. Was wondering if anybody had an idea to where I can find an example of what I am trying to do. Here is the situation? Dropdown box: Choice 1 Choice 2 Choice 3 etc When the user chooses one of the options it will then insert something into a text field: When they choose 1 it will insert: Member choice 2: VIP choice 3: Admin etc Link to comment https://forums.phpfreaks.com/topic/85736-solved-posting-choosed-info/ Share on other sites More sharing options...
phpQuestioner Posted January 12, 2008 Share Posted January 12, 2008 <script language="javascript"> function update(what) { document.getElementById("mytxtfield").value=""+what+""; } </script> <select onchange="update(this.value)"> <option select value="">Make You Choice <option value="Member">Choice 1 <option value="VIP">Choice 2 <option value="Admin">Choice 3 </select> <input type="text" id="mytxtfield"> Link to comment https://forums.phpfreaks.com/topic/85736-solved-posting-choosed-info/#findComment-437566 Share on other sites More sharing options...
SkyRanger Posted January 12, 2008 Author Share Posted January 12, 2008 Awsome, thanks phpQuestioner Link to comment https://forums.phpfreaks.com/topic/85736-solved-posting-choosed-info/#findComment-437574 Share on other sites More sharing options...
phpQuestioner Posted January 13, 2008 Share Posted January 13, 2008 your welcome Link to comment https://forums.phpfreaks.com/topic/85736-solved-posting-choosed-info/#findComment-437604 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.