Hello,
I have looked through the forum but can't quite find what I am looking for. I have a form on the website which is in html code. I like the layout of the form so don't really want to change it. The action of the form is "tellus.php3"
Currently they are redirected to a page that says thank you, with a link back to the home page, but what I would also like is a confirmation email sent to them and then I would change the message to 'you will receive an email shortly'. It is purely to sign up for emails so it does not contain password details etc.
I do use a free newsletter subscription service where you can currently use their subscription form and then they have to confirm within five days via an email, but it only asks for an email and we need to collect name and phone numbers for the business as well and it doesn't have that option.
My current tellus.php file is:
If anyone can see if I can just add something to this to have a confirmation email sent I would really appreciate it as I do not know PHP at all.Code:<? PRINT "<center><FONT SIZE=3 face=arial rounded MT bold>"; PRINT "Thank you for submitting your information.\n"; PRINT "You will now begin receiving property information.\n<br>Please <a href=/index.php> click here </a>to return to the home page. Thank you."; PRINT "</FONT></center>"; mail("subscribe@xxxx.com", "Information from form submitted", "First name: $firstname\nLast name: $lastname\nEmail address: $emailaddress\nPhone number: $phonenumber\nExtension: $dextension\nInfo: $otherinformation"); ?>
Thank you.



Reply With Quote

Bookmarks