FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Parsing Error
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Parsing Error [message #172755 is a reply to message #172753] Mon, 28 February 2011 01:14 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/27/2011 7:34 PM, Mike Copeland wrote:
> <?php
> include "include/page_top.php";
> ?>
> <table border="0" style="width:455px">
> <tr>
> <td>
> <div class="page_text">
> <h1>Contact Us</h1>
> </div>
> </td>
> </tr>
> <tr>
> <td class="page_text">
> For information regarding event timing or production...etc.:
> </td>
> </tr>
> <tr><td class="spacer">&nbsp;</td></tr>
> <tr>
> <td align="center">
> <?php
> //add form submition code
> if(isset($_POST['submit_btn']))
> { // Protect against injection attacks
> $contact = urldecode($_POST['email']);
> if(eregi("\r",$contact) || eregi("\n",$contact) || eregi
> ("http://",$contact))
> {
> exit;
> }
> $to ="myid(at)gmail(dot)com";
> $from = "$email\r\nBCC:results(at)raceplaceevents(dot)com";
> $subject = "Race Place Events Website Inquiry";
> $body1 = "Below is the info submitted:".
> "\n\nName: {$_POST['name']}".
> "\nEmail: {$_POST['email']}".
> "\nName of Event: {$_POST['event_entered']}".
> "\n\nComments: \n{$_POST['add_comments]}";
> $eml_result = mail($to, $subject, $from, $body1);
> if($eml_result)
> {
> do_msg("<br>Your info has been submitted.<br><br>");
> }
> else
> {
> do_msg("<br>There was a problem.<br>");
> }
> }
> ?>
> </td>
> </tr>
> </table>
> <?php
> include "include/page_bottom.php";
> ?>

"\n\nComments: \n{$_POST['add_comments]}";
^

Missing single quote

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HTML select field where the OPTION text is of different colors
Next Topic: Dynamic Charting Assistance Requested
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:34:43 GMT 2024

Total time taken to generate the page: 0.04445 seconds