f



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

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.


0
entoone (28)
8/3/2003 5:34:28 PM
comp.lang.php 32646 articles. 0 followers. Post Follow

2 Replies
3074 Views

Similar Articles

[PageSpeed] 22

On  3-Aug-2003, "entoone" <entoone@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
0
tomnr1 (66)
8/3/2003 5:48:13 PM
Tom Thackrey wrote:
> On  3-Aug-2003, "entoone" <entoone@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">

0
jdg11 (44)
8/3/2003 6:25:51 PM
Reply: