Parse Error

This is a discussion on "Parse Error" within the PHP Forum section. This forum, and the thread "Parse Error are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 1st, 2006, 15:58
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Parse Error

This is not a parse error, i just edited my old post

I am trying to make a simple mail form but I am having some trouble. For some reason the form is being mailed and received but all of the fields are empty. It says contact name and contact e-mail and so on, but thats it. It just looks like this:

Contact Name:
Contact Email:
Contact Phone:

And here is the code for it...

<?php


$info = "Contact Name: $contactname\nContact Email: $contactemail\nContact Phone: $contactphone\nContact E-mail: $contacteamil\nContact Address: $contactaddress\nContact City: $contactcity\nContact State: $contactstate\nContact Zip $contactzip\nStreet Address: $streetaddress\nCounty: $county\nCity: $city\nZip Code: $zipcode\n Class: $singlefamily, $multifamily, $condo\nIf other please specify: $other\nSelling Price: $sellingprice\n Mortgage Amount: $mortgageamount\nValue Estimage If Refinancing: $valueestimate\nOwner(s): $owner\nHome Phone: $homephone\nAlternate Phone: $alternatephone\nBorrower/Clinet: $borrowerclient\nHome Phone: $homephone2\nAlternate Phone: $alternatephone2\n$brokerinfo = Home Phone: $homephone3\nAlternate Phone: $alternatephone3\nComments: $comments";


mail ("eric@sebagowebdesign.com", "Appraisal Request Email", $info);
echo "Thank you for choosing Jordan Bay Appraisal $contactname.";
echo "A response will be sent to $contactemail as soon as possible";

?>

Thanks

Last edited by Maverick25r; Sep 1st, 2006 at 17:24.
Reply With Quote

  #2 (permalink)  
Old Sep 1st, 2006, 20:56
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Parse Error

If that's the sum total of your php, it has no idea where to pick up the data submitted from your form.

Lets see the complete picture.

Oh and please don't edit posts like this. It makes it difficult for people to know if the post is relevent to something they are looking for.

Last edited by ukgeoff; Sep 1st, 2006 at 20:58.
Reply With Quote
  #3 (permalink)  
Old Sep 2nd, 2006, 08:00
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Re: Parse Error

Perhaps you pinched this code from someone who wrote it for global variables? You need to assign the submitted form data to variables first, then your script should work.
Reply With Quote
  #4 (permalink)  
Old Sep 14th, 2006, 22:27
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Parse Error

try this

$info = "Contact Name: ".$contactname
Contact Email: $contactemail
Contact Phone: $contactphone
etc";
Reply With Quote
  #5 (permalink)  
Old Sep 15th, 2006, 16:55
Junior Member
Join Date: Sep 2006
Location: Portugal
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Parse Error

$_POST
$_GET
$_SESSION
...
get the picture ?
Reply With Quote
Reply

Tags
parse, error

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Parse error-Need Help! dhossai PHP Forum 6 Dec 17th, 2007 23:21
[SOLVED] parse error, unexpected T_EXIT in php mail script Posie PHP Forum 8 Dec 13th, 2007 14:21
Need help in solving parse errors shevorne Web Page Design 4 Sep 24th, 2007 13:29
easiest way to parse xml alexgeek Other Programming Languages 2 Aug 30th, 2007 14:44
What is a Parse Error? rubyfruit Starting Out 1 Jul 5th, 2007 20:40


All times are GMT. The time now is 21:11.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43