Re: re: some problems with php form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> 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::

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux