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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • entoone

    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.


  • Tom Thackrey

    #2
    Re: Parse error: parse error, expecting `','' or `';''


    On 3-Aug-2003, "entoone" <entoone@pacbel l.net> wrote:
    [color=blue]
    > 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>[/color]

    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

    Comment

    • Joshua Ghiloni

      #3
      Re: Parse error: parse error, expecting `','' or `';''

      Tom Thackrey wrote:[color=blue]
      > On 3-Aug-2003, "entoone" <entoone@pacbel l.net> wrote:
      >
      >[color=green]
      >>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>[/color]
      >
      >
      > 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>
      >
      >[/color]

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

      Comment

      Working...