Help with echo

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

    Help with echo

    Hi,

    Im trying to get a form to display using php

    I have sonme code eg.

    conditional code
    if true then
    echo ('<form
    target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
    method="post">' );
    etc
    etc

    When I runn it I get Parse error: parse error, unexpected T_STRING in
    C:\Program Files\Apache Group\Apache2\h tdocs\Pages\mrw hois_sample.php on
    line 24

    Line 24 being the echo line

    Any help appreciated..
    -
    Kev T


  • Nel

    #2
    Re: Help with echo

    "Kev T" <nospam@c.l.o.n .e.fsnet.co.uk> wrote in message
    news:cess6b$3q6 $1@news5.svr.po l.co.uk...[color=blue]
    > Hi,
    >
    > Im trying to get a form to display using php
    >
    > I have sonme code eg.
    >
    > conditional code
    > if true then
    > echo ('<form
    > target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
    > method="post">' );
    > etc
    > etc
    >
    > When I runn it I get Parse error: parse error, unexpected T_STRING in
    > C:\Program Files\Apache Group\Apache2\h tdocs\Pages\mrw hois_sample.php on
    > line 24
    >
    > Line 24 being the echo line
    >
    > Any help appreciated..
    > -
    > Kev T
    >[/color]
    Please include a few lines before and after line 24.

    Nel


    Comment

    • Kev T

      #3
      Re: Help with echo

      I've sorted it..

      there was a spurious char in one of the lines..I spotted it by commenting
      line 24 out - I then got the same error about 8 lines later.. by comparing
      them to the others I realised the prob.. it all now works and the form
      displays correctly..

      "Nel" <nelly@ne14.co. NOSPAMuk> wrote in message
      news:4111f5fd$0 $59464$ed2619ec @ptn-nntp-reader03.plus.n et...[color=blue]
      > "Kev T" <nospam@c.l.o.n .e.fsnet.co.uk> wrote in message
      > news:cess6b$3q6 $1@news5.svr.po l.co.uk...[color=green]
      > > Hi,
      > >
      > > Im trying to get a form to display using php
      > >
      > > I have sonme code eg.
      > >
      > > conditional code
      > > if true then
      > > echo ('<form
      > > target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
      > > method="post">' );
      > > etc
      > > etc
      > >
      > > When I runn it I get Parse error: parse error, unexpected T_STRING in
      > > C:\Program Files\Apache Group\Apache2\h tdocs\Pages\mrw hois_sample.php on
      > > line 24
      > >
      > > Line 24 being the echo line
      > >
      > > Any help appreciated..
      > > -
      > > Kev T
      > >[/color]
      > Please include a few lines before and after line 24.
      >
      > Nel
      >
      >[/color]


      Comment

      • Alvaro G Vicario

        #4
        Re: Help with echo

        *** Kev T wrote/escribió (Thu, 5 Aug 2004 09:47:06 +0100):[color=blue]
        > if true then[/color]

        if() syntax, from PHP manual:

        if (expr)
        statement

        If you were just using pseudo-code, please copy the actual code. Parse
        errors are often caused in preceding line.

        --
        --
        -- Álvaro G. Vicario - Burgos, Spain
        --

        Comment

        Working...