RE: re: some problems with php form

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

 



[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']; ?>">

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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