post form to external host
post form to external host
hello every body
i have a form and i want to post it's fields to external page
like
<script src="
http://code.jquery.com/jquery-latest.js
"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input:submit").click(function(){
$.post("
http://xxxxxx.net/login.php
",{email:$("#email").val()},function(data){
$("#contents").html(data);
});
return false;
});
});
</script>
this code not working and return no thing
but when i chang the url to local page it working fine
<script src="
http://code.jquery.com/jquery-latest.js
"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input:submit").click(function(){
$.post("
login.php",{email:$("#email").val()},function(data
){
$("#contents").html(data);
});
return false;
});
});
</script>
any help???
Topic Participants
nabeel.galal
zoho