PHP中的自动过程

I'm doing with PHP. I have a form. Each time users submit that form, I want to save these data to database first (to save time for users) then deal with these data later. But I don't know how to deal with these data automatically. Any code can auto process in server to treat these data automatically everytime having new record in database? Did you get my question? Any suggestions? Thanks in advanced!

You could use 'Stored Routines' that get triggered when the data changes, see:

http://dev.mysql.com/doc/refman/5.0/en/stored-routines.html

or, slightly less elegant, use a cronjob that launches every set amount of time and have a "processed" flag on the database that allows the script to know what records it has already processed and which ones it hasn't and act accordingly.