fortheloveof_d
02-22-2008, 10:12 PM
I understand how ajax sends a request to a server side script and how it gets a response.
A lot of my scripts are usually "process" scripts and follow this flow:
user_interface.php (form leads to process script)
process_data.php (script that processes form into database...)
user_interface.php (back to user_interface via header() in proccess_data.php)
I do this to keep file sizes down.
Anyway how would I go about getting ajax to handle that kind of a script? Do I need to rewrite my scripts to be included as apposed to separate files that redirect? I am also trying to keep graceful degradation in mind.
A lot of my scripts are usually "process" scripts and follow this flow:
user_interface.php (form leads to process script)
process_data.php (script that processes form into database...)
user_interface.php (back to user_interface via header() in proccess_data.php)
I do this to keep file sizes down.
Anyway how would I go about getting ajax to handle that kind of a script? Do I need to rewrite my scripts to be included as apposed to separate files that redirect? I am also trying to keep graceful degradation in mind.