I have the following problem. I got two forms on my web page. On the first form can I select a users whit a select box. When I have selected the users in the form, I will send it to the another form on the same web page. How can I be sure that the first page does not reload when i post the form? It is not intended that when I enter some data and a user wants to add the data that I entered are gone by reloading the page by post. I know this can be done with jquery, but I have no idea how this goes.
Thanks
You can achieve this by using jQuery.ajax() function.
GetUserInfo.php
$_POSTvariableindexof eachvalueshould representidof a second form field.For Example:
Here FirstName, LastName and DOB are the IDs of form elements in second form
echo json_encode( $userInfo );