Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-27-2007, 10:06 PM
EDGE is offline EDGE
EDGE's Avatar

Join Date: Feb 2003
Location: North Carolina
Posts: 7,184

Send a message via ICQ to EDGE Send a message via AIM to EDGE Send a message via Yahoo to EDGE
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>
and the sendmail.php code:

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#" );?>
I am aware that the #LOCATION# needs to be replaced I added that so no one would take a peak at my site just yet.

Thanks for any help that anyone can provide.
__________________
Quote:
Voltaire
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
Reply With Quote
  #2  
Old 06-27-2007, 11:19 PM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

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
Reply With Quote
  #3  
Old 06-27-2007, 11:38 PM
EDGE is offline EDGE
EDGE's Avatar

Join Date: Feb 2003
Location: North Carolina
Posts: 7,184

Send a message via ICQ to EDGE Send a message via AIM to EDGE Send a message via Yahoo to EDGE
Quote:
Originally posted by Mike
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
Thanks Mike I'm going to have to check into the smtp issue. I'm using a free host right now to test everything out until I actually purchase my own space when Im ready to set the site up.
__________________
Quote:
Voltaire
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:24 PM.




Powered by vBulletin®