<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type="text/javascript">
function ajax_request(first_name,last_name){
$.post("somepage.php", { first_name: ""+first_name+"", last_name: ""+last_name+"" },
function(data){
$("#return_data_div").html(data);
});
}
</script>
<a href="javascript:ajax_request('Greg','Alexander');">Who wrote this article on experts-exchange.com?</a>
<div id="return_data_div"></div>
<?php
echo $_POST['first_name']." ".$_POST['last_name'];
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type="text/javascript">
function ajax_request(first_name,last_name){
$.post("somepage.php", { first_name: ""+first_name+"", last_name: ""+last_name+"" },
function(data){
$("#return_data_div").html(data);
});
}
</script>
<a href="javascript:ajax_request('Greg','Alexander');">Who wrote this article on experts-exchange.com?</a>
<div id="return_data_div"></div>
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (3)
Commented:
Commented:
Commented: