msafvati Posted January 14, 2008 Share Posted January 14, 2008 hi i want to when i click on one of the value of list in SELECT tag , a html page open for example: <select> <option>www.yahoo.com</option> :when i click open yahoo.com <option>www.phpfreaks.com</option> </select> do should i use from events? please guid me Quote Link to comment https://forums.phpfreaks.com/topic/85924-and-event/ Share on other sites More sharing options...
dooper3 Posted January 14, 2008 Share Posted January 14, 2008 Firstly, I hope english is your second language, because otherwise I think you're going to have some serious troubleshooting in your scripts! You need to use javascript to do this, google "window.location" or browser redirection using javascript. Quote Link to comment https://forums.phpfreaks.com/topic/85924-and-event/#findComment-438672 Share on other sites More sharing options...
rajivgonsalves Posted January 14, 2008 Share Posted January 14, 2008 your code should be... <select onchange="location.href = this[this.selectedIndex].value;"> <option value="">-- Select One --</option> <option value="http://www.yahoo.com">www.yahoo.com</option> <option value="http://www.phpfreaks.com">www.phpfreaks.com</option> </select> Quote Link to comment https://forums.phpfreaks.com/topic/85924-and-event/#findComment-438680 Share on other sites More sharing options...
msafvati Posted January 14, 2008 Author Share Posted January 14, 2008 i am sorry i make a mistake Quote Link to comment https://forums.phpfreaks.com/topic/85924-and-event/#findComment-438681 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.