Thread: please help
View Single Post
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: please help

 
0
  #2
Dec 1st, 2008
When using heredoc, you must open and close the variable with the same identifier.
  1. $body = <<<em
  2. <br><hr><br>
  3. name: $name <br>
  4. surname: $surname <br>
  5. email: $email <br>
  6. telephone: $telephone <br>
  7. comments: $comments <br>
  8. EOD;
should be:
  1. $body = <<<EOD
  2. <br><hr><br>
  3. name: $name <br>
  4. surname: $surname <br>
  5. email: $email <br>
  6. telephone: $telephone <br>
  7. comments: $comments <br>
  8. EOD;

Also, variables in php are case sensitive, so you'll have a blank page unless you change echo "$theresults"; to echo "$theResults";
Lost time is never found again.
- Benjamin Franklin
Reply With Quote