|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
A little help?
Okay, so I took your advice scott...I'm reading up on some php. Your right, so far I like it. Now, im having trouble with an email form. Everything works, but I don't ever recieve the emails. Is there just a long period of waiting time or did I do something wrong? I had some help from DN Lodge making this code, but it seems to not want to fully work. Anyhow, help please
email form: Code:
<form method="post" action="sendmail.php"> Name: <input name="name" type="text" /><br /> Email: <input name="email" type="text" /><br /> Message:<br /> <textarea name="message" rows="10" cols="50"> </textarea><br /> <input type="submit" /></form> Code:
<? $name = $REQUEST['name'] ; $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; mail( "steve.j.mcarthur@gmail.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: #LOCATION#" );?> Thanks for any help that anyone can provide.
__________________
Quote:
|
#2
|
||
|
It worked as posted for me, all I did is drop my email in mail(), got rid of header() and added a underscore where you declare $name...
Also your host may have disabled sending of email from a null source, in which case youll need to set up a smtp thingo, my host did that without telling anyone and just about all scripts hosted on it stopped working lol, needless to say im not with em anymore lol |
#3
|
||||
|
Quote:
__________________
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|