Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 1
Trades: 0
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.com\r\n" .
'X-Mailer: PHP/' . phpversion() . "
\r\n" .
"
MIME-Version1.0\r\n" .
"
Content-Typetext/htmlcharset=utf-8\r\n" .
"
Content-Transfer-Encoding8bit\r\n\r\n";

// 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
 
 
Register now for full access!
Old 12-11-2007, 11:56 AM Re: Help with a Dreamweaver form
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
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 Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
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
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You don't need a seperate php page if the form targets the same page it is on.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-13-2007, 12:07 PM Re: Help with a Dreamweaver form
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
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
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-13-2007, 05:02 PM Re: Help with a Dreamweaver form
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
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 Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
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
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
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.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-14-2007, 03:57 AM Re: Help with a Dreamweaver form
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
It'll bounce....
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with a Dreamweaver form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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.55153 seconds with 12 queries