jQuery AJAX call for simple site
I have made a simple site that you enter an access code and it reveals a seceret message. It works. wooo.

However, i would like to add a bit too it so when the seceret has been revealed, an email is sent to the user in the background.

I know i use ajax for the call to the PHP script that would send the email, but im a little unsure of the code to use.

I know the users email address already, as the site is for that person.

Thanks
jQuery AJAX call for simple site
===

I have made a simple site that you enter an access code and it reveals a seceret message. It works. wooo.

However, i would like to add a bit too it so when the seceret has been revealed, an email is sent to the user in the background.

I know i use ajax for the call to the PHP script that would send the email, but im a little unsure of the code to use.

I know the users email address already, as the site is for that person.

Thanks