You need a comma between $fname and $lname eg:
<?php echo $fname, $lname; ?>
"Lmlweb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm just curious:
> if I use within my html codes:
> <?php echo $fname $lname; ?>, I get an error message telling me:
> Parse error: parse error, expecting `','' or `';''
> However, if I take out one of the variables so that it reads <?php echo
> $lname; ?> it works.
> Has it always been this way? I never noticed before, as I'm quite the
> newbie. If so, how do I best combine the two (other than having to create
> two separate <?php..?> codes in the HTML)?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php