form to email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gobbygov
Forum Newbie
Posts: 1
Joined: Thu Jan 21, 2010 4:57 pm

form to email

Post by gobbygov »

Hello All,
I have found this forum in desperation. I am probably way out of my league here, but wonder if someone could help me with what may be to some of you a simple task!!!

I have just made my first web site on dreamweaver, it all looks very nice until i get to the contacts page. I have inserted a very simple "form" which ask people the basic information if they would like to contact me. It all looks great on the design page, but the code, well....... My server people LCN to use this code : -
<?php
# You can use this script to submit your forms or to receive orders by email.
$MailToAddress = "you <at> yoursite <dot> com"; // your email address
$redirectURL = "http://www.web4future.com/thankyou.htm"; // the URL of the thank you page.
$MailSubject = "[Message from the contact form]"; // the subject of the email

and just make the changes to the mail to address.....

I have done this and when you click submit i do get the thank you page come up..... but no enquiry form is emailed to me.....

Please can someone tell me in simple terms, where i am going wrong. please please please!

Thank you.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: form to email

Post by AbraCadaver »

mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply