By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

Parse error: parse error, expecting `','' or `';''

P: n/a
I'm getting the following error Parse error: parse error, expecting `','' or
`';'' in /home/notarywe/public_html/php/update2.php on line 108

Here is line 108

<input type="text" name="ud_first" value="<? echo "$first"
size="20"?>"></td>

Any help would be appreciated.
Jul 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

On 3-Aug-2003, "entoone" <en*****@pacbell.net> wrote:
I'm getting the following error Parse error: parse error, expecting `',''
or
`';'' in /home/notarywe/public_html/php/update2.php on line 108

Here is line 108

<input type="text" name="ud_first" value="<? echo "$first"
size="20"?>"></td>


Please cross post instead of posting the same message separately to multiple
news groups.

The problem is your php statement <? echo "$first" size="20"?> is incorrect.
The correct syntax for it would be:
<? echo "$first size=\"20\"" ?> but I doubt that's what you want. try:
<input type="text" name="ud_first" value="<? echo "$first"; ?>"
size="20"></td>
--
Tom Thackrey
www.creative-light.com
Jul 16 '05 #2

P: n/a
Tom Thackrey wrote:
On 3-Aug-2003, "entoone" <en*****@pacbell.net> wrote:

I'm getting the following error Parse error: parse error, expecting `',''
or
`';'' in /home/notarywe/public_html/php/update2.php on line 108

Here is line 108

<input type="text" name="ud_first" value="<? echo "$first"
size="20"?>"></td>

Please cross post instead of posting the same message separately to multiple
news groups.

The problem is your php statement <? echo "$first" size="20"?> is incorrect.
The correct syntax for it would be:
<? echo "$first size=\"20\"" ?> but I doubt that's what you want. try:
<input type="text" name="ud_first" value="<? echo "$first"; ?>"
size="20"></td>


Or, make it even easier to read:
<input type="text" name="ud_first" value="<?=$first?>" size="20">

Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.