bhupen2 Posted March 13, 2008 Share Posted March 13, 2008 Hello all, Here i am using ajax to get value as select element : <form action=somepage.php method=get> <table> <........... some content ....................> <div id='res_select'> <table> <tr> <td> <select name="Resort" size="1" style="WIDTH: 120px" class="textbox1"> <option value='' selected>Select one</option> </select> </td> </tr> </table> </div> <........... some content ....................> </form> getting value from page getresort.php <table> <tr> <td> <select class="textbox1" name="Resort" size="1" style="WIDTH: 120px" onchange="javascript:sendajax(this.value,'resort','form_inner1','res_select')"> <option value='' selected><center>Select one</center></option> <?php $query = "select * from TravelCity where CountryValue='".$_GET['d_code']."' order by Cityname"; $result = mysql_query($query,$link1); while($row=mysql_fetch_array($result)) { echo "<option value='".$row['CityValue']."'>".$row['Cityname']."</option>"; ?> </select></td> </tr> </table> It's working fine i am getting the option but when i submit the form (make the search) in mozilla,netscape it's not passing the value of resort to next page.... with IE working very fine... what is the problem... or i can use some input type=hidden and pass the value but i don't want that... please if you have any solution... please help me out... Thanks bhupen 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.