Re: re: some problems with php form
| From: | Bruce Gilbert | Date: | Wed, 19 Oct 2005 19:40:30 +0000 |
| Subject: | Re: re: some problems with php form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224346@lists.php.net to get a copy of this message | ||
I now have:
<p><label for="firstname"><span class="red">*</span>
First Name: </label><br
/>
<input class="<?PHP if ($error_msg) {echo "error";} else {echo
"normal";}?>"
id="firstname" name="firstname" type="text" value="<?php echo
$_POST["firstname";]; ?>">
</p>
but I still receive the same error:
' *Parse error*: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in *
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form.php<http://evolution.com/Contact_Form.php>
* on line *54 '*
On 10/19/05, Jay Blanchard <jay.blanchard@thermon.com> wrote:
>
> [snip]
> <input class="<?PHP if ($error_msg) {echo "error"} else {echo
> "normal"}?>"
> id="firstname" name="firstname" type="text" value="<?php
> echo
> $_POST['firstname'] ?>">
>
> how would I fix this error?
> [/snip]
>
> You are missing several semi-colons;
>
> <input class="<?PHP if ($error_msg) {echo "error";} else {echo
> "normal";}?>"
> id="firstname" name="firstname" type="text" value="<?php
> echo
> $_POST['firstname']; ?>">
>
--
::Bruce::