C-chan,
You have to know the technical details about AJAX before diving into something.
Let's open our minds..... at first impression AJAX is a Javascript that refreshes a partial of the page and NOT THE ENTIRE PAGE. In a browser point of view, your AJAX page must be accompanied with RANDOM identifier (or GET parameter) to trick the browser that it's always a new page, internet browsers are fond of storing temporary information.
To put it simply, your second PHP script must be called treatly as a different page, without refreshing or bothering your main page. Overall, you are only calling the second page using only Javascript without leaving your MAIN PAGE.
It's hard to teach you online, but it's better that you self study.
You can read this.. this also helps. LINK AJAX Create an XMLHttpRequest Object
Last edited by dodie; 07-07-2010 at 11:37 PM.
dali rani imo problem gamiti lang ni og Ajax Post Request para sure ka ma pasa dyud ang total ngadto sa other php file. try to read how to use => AJAX Form POST Request - HTML Form POST/Submit with AJAX/Javascript Example/Tutorial
Similar Threads |
|