Hello all,
I need a little help. Right now I have a page that contains code that is designed to send user info to a second page. The code is:
Code:
$(document).ready(function(){
$('#add').click(function() {
alert('test');
});
$("form#exercise").submit(function() {
// we want to store the values from the form input box, then send via ajax below
var activity = $('#activity').attr('value');
$.ajax({
type: "POST",
url: "newActiveProc.php",
data: "activity="+ activity +"&func=search",
success: function(msg){
$("span#results").html(msg);
}
});
return false;
});
});
I did not write this code. I inherited it. I was to use something instead of alert (test) to see whether or not the page is working. Why can I put here to add the user's activity to the second page? Any suggestions are appreciated.