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.
|
|
|
|
|
![]() |
||
Parse Error
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
Re: Parse Error
try this
$info = "Contact Name: ".$contactname Contact Email: $contactemail Contact Phone: $contactphone etc"; |
|
#5
|
|||
|
|||
|
Re: Parse Error
$_POST
$_GET $_SESSION ... get the picture ? |
![]() |
| Tags |
| parse, error |
| Thread Tools | |
|
|
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 |