Ajax basic email code without reloading page
Posted
by Camran
on Stack Overflow
See other posts from Stack Overflow
or by Camran
Published on 2010-05-20T08:31:05Z
Indexed on
2010/05/20
8:40 UTC
Read the original article
Hit count: 253
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...
© Stack Overflow or respective owner