tags:

views:

33

answers:

1

Hi,

I am trying to post a form to another php page. The posted data is processed in the php page and page needs to be redirected to a new url.

1) Where do i give this code for posting the data to test.php. Do i have to call this in a function when the submit button is clicked?

 $.post("test.php", { name: "John", time: "2pm" } );

2) How do i retrieve the posted data in the test.php?

Thanks Prady

+1  A: 
JapanPro
one last question... Do i need to call this script function explicitly on for the submit button or does the click of submit button runs this script?
Prady
right now it run default but you can implement this script with click and submit both.
JapanPro
thanks a ton ....
Prady