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.

PHP Forum


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



Freelance Jobs

Reply
i cant see the information submitted in the form
Old 10-23-2008, 09:35 AM i cant see the information submitted in the form
Earnersguide's Avatar
Experienced Talker

Posts: 46
Name: Hari Prasad
Location: india
Trades: 0
i got a problem while coding a "php script to email form details". i did this coding by seeing a video tutorial. i can't understand one word spelled by the teacher and since the video clarity is less , i cant see that too.

See the code the missed word(symbol) is highlighted in red in the bule line


<?php

/* Subject and Email Variables */

$emailSubject = 'hari scripting!';
$webMaster = 'rgstravels2003@gmail.com';

/* Gathering information variables */

$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$budgetField = $_POST['budget'];
$travelersField = $_POST['travelers'];
$commentsField = $_POST['comments'];
$newsletterField = $_POST['newsletter'];

$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Phone number: $phone <br>
budget: $budget <br>
Number of travelers: $travelers <br>
Comments: $comments <br>
Newsletter: $newsletter <br>
EOD;

$headers = "From: $email\r\n";
$header missed symbol = "Content-type; text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);

/* Results render as HTML */

$theResults = <<<EOD
<html>
<head>
<title>Rgs air travels. in - travel made easy-Homepage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>

<div>
<div align="left">Thank you for your interest! Your email will be answered very soon!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";

?>
__________________

Please login or register to view this content. Registration is FREE

Earnersguide is offline
Reply With Quote
View Public Profile Visit Earnersguide's homepage!
 
 
Register now for full access!
Old 10-23-2008, 10:47 AM Re: i cant see the information submitted in the form
maxxximus's Avatar
Extreme Talker

Posts: 219
Name: Rob
Location: UK
Trades: 0
I'd imagine a concat symbol http://www.tizag.com/phpT/operators.php

PHP Code:
$headers.= "Content-type; text/html\r\n"
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 10-23-2008, 12:35 PM Re: i cant see the information submitted in the form
Earnersguide's Avatar
Experienced Talker

Posts: 46
Name: Hari Prasad
Location: india
Trades: 0
thanks for you reply i will check it out
__________________

Please login or register to view this content. Registration is FREE

Earnersguide is offline
Reply With Quote
View Public Profile Visit Earnersguide's homepage!
 
Reply     « Reply to i cant see the information submitted in the 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.79881 seconds with 12 queries