Ajax basic email code without reloading page
- by Camran
I have in a previous Q found out that I need an ajax-function to send an email (submit a contact form) without reloading the page.
This is for my classifieds website, where when users are viewing a classified they have the option to "tip a friend" by entering their friends email-adress and submitting the form.
But I don't want to reload the page, that would be frustrating and not so clever.
The only input in the form is a text input which will contain the email-adress to send to, and another hidden input which contains the classified_id nr, to identify which classified it is.
The website is php based btw...
Does anybody have a simple script for this?
I have no experience in Ajax at all... And would really appreciate it.
Thanks
PS: Would prefer no Jquery, due to clients own reasons...