Re: Mixing $_POST with text in a variable

From: Date: Mon, 19 Jul 2004 18:37:49 +0000
Subject: Re: Mixing $_POST with text in a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191053@lists.php.net to get a copy of this message
Jay, Thanks for the response. Here's the code fragment. I'm basically building a text variable $message which I send later in the script as an email. Line 94 is the only one where I have implemented $_POST. If I change it back to $Name, the script works fine. // format email message $subject = "VisLab Event Request: $EventType"; $premessage = "This request was submitted via the VisLab Event Request Form at: http://vetsdev.ucar.edu/Vislab/eventrequest.php"; $message = " Name: $_POST['Name'] Division: $Division Phone: $Phone Email: $Email EventType: $EventType Preferred Date: $PreferredDate Preferred Start Time: $PreferredStartTime $AMPM Duration: $DurationHrs hrs $DurationMins min Participants: $Participants Description: $Description Special Needs: $SpecialNeeds"; > --- Jay Blanchard <jay.blanchard@niicommunications.com> wrote: --- > [snip] > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING in > /web/scd/vets/Vislab/eventrequest.php on line 94 > [/snip] > > Can we see line 94 and +/- 10 lines in eventrequest.php please? >

« previous php.general (#191053) next »