![]() |
| ||
| Problem with PhP MySql Ajax dropdown code HI, I am using Roshan's Ajax dropdown code for my two ajax dropdown menus. All is working fine, but when I want to use $_POST in the submitted form in FireFox, its not working...??? Its working fine in IE. Can anybody please help me with this problem? The Form where the dropdown is: <!-- Province goes here --> The townsrc.php: <? $country=intval($_GET['province']); The submit for: $province = trim($_POST['province']); In IE $province and $city gets posted In FF only $province gets posted |
| ||
| Re: Problem with PhP MySql Ajax dropdown code Hi there, Nothing leaps out at me as being wrong with your code, except it being a little incomplete. Eg your php side AJAX file doesn't echo the output or give any of the option elements any values. You could try this: Instead of replacing the entire select element with your ajax call, only replace the <option> elements. Ie, put the "cityDiv" tags inside the select tags and dont return the select tags with the ajax. Good luck |
| ||
| Re: Problem with PhP MySql Ajax dropdown code P.S Forgot to mention South Africa is the BEST. (Not really, just Jo'burg and Pretoria, but you don't meet too many South Africans in the online community) |
| ||
| Re: Problem with PhP MySql Ajax dropdown code hi i think you need to add id for the all select tag <select name="city" id="city">I hope this solve your problem Thanks |
| All times are GMT -4. The time now is 7:28 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC