Can someone please help me. I just want to put a simple form on my web site. I am using dreamweaver and first of all, I am NOT a techy. I basically taught myself Dreamweaver and created my own e-commerce site. I would like to have a form for people to sign up for a newsletter. All I want them to fill in is NAME and EMAIL ADDRESS. I paid someone to build be a Contact Us Page. I just cant believe it is that hard to do. I just feel like there is one step that I am missing. I am pretty computer literate but I am not a programmer. I would appreciate any help you can give me. I am sure someone has a simple basic form out there that they would share. Thanks.
pamwynne
0
Newbie Poster
Recommended Answers
Jump to PostError found in script provided by PatrickE. This last line should be:
mail($sendto,$subject,$body)
You can also add header information:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: ".$name." <".$email.">\r\n";
$headers .= "From: Someone <someone@somedomain.com>\r\n";
$headers .= "Cc:
Jump to PostYour code will work. It would be easy to see by breaking down the code
// get data
$email = $_POST["email"];// use comma to separate email address
$to = "user1@domain.net" . ", ";
$to .= $email . ", " ;
$to .= "
All 8 Replies
PatrickE
0
Newbie Poster
pamwynne
0
Newbie Poster
PatrickE
0
Newbie Poster
zippee
0
Posting Whiz in Training
pamwynne
0
Newbie Poster
darnoldy
0
Newbie Poster
zippee
0
Posting Whiz in Training
darnoldy
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.