Hi;
The div gets updated but the values are not passed! In other words => calculate_usps print_r($_SERVER); doesn't print the values for s_from or s_to. $_POST prints nothing either. What am I doing wrong?Code:
<form action="#null" method="post" id="usps"> <div class="main_contant clearfix"> <input type="text" name="s_from" value="90210"/></div> <input type="text" name="s_to" /></div> </form>Thanks
$(document).ready(function(){ $('#calculate').click(function() { $('#result').html("<img src='images/ajax-loader.gif'>"); $.post('http://localhost:8888/live/calculate_usps?'+$("#usps").serialize(), { }, function(response){ $('#result').html(response); }); return false; }); })
Ps this code preview sucks lol