almightyegg Posted October 19, 2007 Share Posted October 19, 2007 I think this can be done with PHP so: I have a standard drop down list- option1 option2 option3 etc... Next to it I want it to display an image that is associated with it eg. <img src="/images/players/$option.png"> Where the $option is whtever is selected. Can this be done without reloading the page? and using php? Quote Link to comment Share on other sites More sharing options...
Orio Posted October 19, 2007 Share Posted October 19, 2007 No, php is server side, so you'll have to use javascript in some sort of way here. Orio. Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted October 19, 2007 Share Posted October 19, 2007 Not without reloading... You have to use some JavaScript and maybe some PHP to get info from a database or similar. So you have to look into ajax. Quote Link to comment 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.