Forum Moderators: coopster
I'm writing a small (my first script) script that takes info form a visitor (name, email, address, city, state) and inserts it into a mysql database. Afterwards, we export the database into cvs format and use it to make labels etc.
What we would like to do is besides having the info added to a mysql db, have that SAME information emailed to us so we know someone signed up.
Could this be done in 1 shot? meaning, have the script ADD the info the DB AND have it the email sent out?
Thanks
What you'll need to do.
[your MySQL insert code here]
Then use the PHP mail() [php.net] function and fill in the options with the same vars you used to submit to your MySQL database.