IreneLing Posted October 7, 2011 Share Posted October 7, 2011 Hi all , in my scripts I have a drop list and its <option> values are retrieved from sql database , and once I choose any value from the drop list the value will shown in a textbox . It's functioning well in firefox and opera except IE , is there any way to solve this problem? <html> <head> <title>Untitled</title> </head> <body> <form name="theform" onsubmit="CheckForm()"> <?php $query="SELECT DISTINCT Custgroup FROM UserAddedRecord"; $result = mysql_query ($query); ?> <select name="myOptions" onchange="document.theform.showValue.value=this.value" > <? while($nt=mysql_fetch_array($result)){//Array or records stored in $nt echo "<option >$nt[Custgroup]</option>"; } ?> <input type="text" name="showValue"><br> </form> </body> </html> Thanks for every reply . Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/ Share on other sites More sharing options...
The Little Guy Posted October 7, 2011 Share Posted October 7, 2011 I see that you don't have a </select> tag Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277017 Share on other sites More sharing options...
IreneLing Posted October 7, 2011 Author Share Posted October 7, 2011 Thanks for your reply . Sorry I forget to add it , but it's still not functioning in IE after it's added. Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277021 Share on other sites More sharing options...
The Little Guy Posted October 7, 2011 Share Posted October 7, 2011 define "Not Functioning" Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277023 Share on other sites More sharing options...
Caliber Mengsk Posted October 7, 2011 Share Posted October 7, 2011 Try a closing tag on your input also. <input type="text" name="showValue"></input> OR the shorter way <input type="text" name="showValue" /> Either way is a wc3 standard of doing things. EDIT: And being technical, for w3c standard br's also need a closing tag (technically ) <br /> Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277031 Share on other sites More sharing options...
IreneLing Posted October 7, 2011 Author Share Posted October 7, 2011 Thank you so much Caliber Mengsk , it works now! Really thanks for your help , thank you and have a nice day . Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277036 Share on other sites More sharing options...
Caliber Mengsk Posted October 7, 2011 Share Posted October 7, 2011 ^__________^ Glad I could be of help. Just for future reference (If you read this post again) If it's something that one browser is having issues with, and the others aren't it's not PHP code that's the problem. PHP Is server side, and the browser never sees anything of php until you echo it out, so if only IE is giving trouble, it has to be with the HTML/Javascript (client side). Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277046 Share on other sites More sharing options...
IreneLing Posted October 7, 2011 Author Share Posted October 7, 2011 ^__________^ Glad I could be of help. Just for future reference (If you read this post again) If it's something that one browser is having issues with, and the others aren't it's not PHP code that's the problem. PHP Is server side, and the browser never sees anything of php until you echo it out, so if only IE is giving trouble, it has to be with the HTML/Javascript (client side). Truly thanks for your advices , I will remember it . Thanks again . Quote Link to comment https://forums.phpfreaks.com/topic/248649-function-that-not-working-in-ie/#findComment-1277080 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.