Reply
Help with a Dreamweaver form
Old 12-11-2007, 10:01 AM Help with a Dreamweaver form
Junior Talker

Posts: 1
I copied this process.php from a website but cannot get it to work as it comes up with parse error on line 12. Can someone help please.

*** COPY OF PROCESS.PHP BELOW ***
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
PHP Code:
<?php

// this sets up your email headers, just change the email address
$headers "From: "webmaster@MYWEBSITE.comrn" .
'X-Mailer: PHP/' . phpversion() . "
rn" .
"
MIME-Version1.0rn" .
"
Content-Typetext/htmlcharset=utf-8rn" .
"
Content-Transfer-Encoding8bitrnrn";

// this emails you the results of the form
mail( "
Webmaster@MYWEBSITE.com", "New Contact Message", print_r( $_POST, true),"$headers">

// this will redriect the user somewhere away from this page
header("
locationhttp://www.MYWEBSITE.com/thanks.html");

?>
</body>
</html>

thank you for your help

Last edited by mantona : 12-14-2007 at 08:00 PM.
mantona is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-11-2007, 11:56 AM Re: Help with a Dreamweaver form
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 563
Name: Darren
Location: England
You seem to have parts missing?

You need the html form part and then the php SEPERATE page...

try going here to have the form generated for you, then you can see how things should be.

http://www.tele-pro.co.uk/scripts/contact_form/

__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 12-13-2007, 11:41 AM Re: Help with a Dreamweaver form
wayfarer07's Avatar
$frontend->developer

Posts: 1,031
Name: Abel Mohler
Location: Asheville, North Carolina USA
You don't need a seperate php page if the form targets the same page it is on.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 12-13-2007, 12:07 PM Re: Help with a Dreamweaver form
wayfarer07's Avatar
$frontend->developer

Posts: 1,031
Name: Abel Mohler
Location: Asheville, North Carolina USA
the end of the mail () function needs to be closed with a ); instead of >

,"$headers");
not:
,"$headers">

you should be asking this question in the php forum
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 12-13-2007, 05:02 PM Re: Help with a Dreamweaver form
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 563
Name: Darren
Location: England
Quote:
Originally Posted by wayfarer07 View Post
You don't need a seperate php page if the form targets the same page it is on.

I may be missing something here as this is not the way I'm used to doing it , but where is the form??
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 12-13-2007, 10:10 PM Re: Help with a Dreamweaver form
wayfarer07's Avatar
$frontend->developer

Posts: 1,031
Name: Abel Mohler
Location: Asheville, North Carolina USA
Quote:
where is the form??
It's in the mail, rolda. Fill it out and send it back with a check for one-hundred US dollars.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 12-14-2007, 03:57 AM Re: Help with a Dreamweaver form
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 563
Name: Darren
Location: England
It'll bounce....
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with a Dreamweaver form
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14306 seconds with 12 queries