Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Problem with a .php page

  1. #1
    Senior Member
    Join Date
    Dec 2003
    Posts
    178

    Problem with a .php page

    Hi,

    Any chance that someone might be able to help with a bit of php coding?

    I am trying to add a hyperlink to a word on a.php page:

    "Please click HERE for for details"
    and I would like to hyperlink the word HERE

    The page was find until I added,
    Please click HERE for details.

    Which brought out this error message:
    Parse error: parse error, expecting `','' or `';'' in /home/xxxx/public_html/member_join.php on line 191

    What did I do that was wrong?
    Did I leave out ....
    `',''
    somewhere???

    Thanks.

  2. #2
    Senior Member
    Join Date
    May 2004
    Posts
    151
    Code:
    <?php
    
    echo "Please click <a href=\"http://www.mydomainxxxxx.co.uk/link-back.php\">HERE</a> for details.";
    
    ?>
    or

    Code:
    <?php
    
    print "Please click <a href=\"http://www.mydomainxxxxx.co.uk/link-back.php\">HERE</a> for details.";
    
    ?>
    Read up on echo, print, and learn how to escape for html output with php.

  3. #3
    Senior Member
    Join Date
    Dec 2003
    Posts
    178
    Thanks - yes, I had the opening and/or closing quotes all over the place.
    All sorted.

Similar Threads

  1. secure page problem
    By kateloe in forum Web Programming Discussion Forum
    Replies: 6
    Last Post: 05-09-2009, 12:34 AM
  2. page problem....
    By samuelwhalley in forum Web Programming Discussion Forum
    Replies: 1
    Last Post: 04-24-2008, 02:23 PM
  3. Problem page on new site
    By DavidB29 in forum Submit Your Site For Review
    Replies: 8
    Last Post: 02-16-2006, 06:18 AM
  4. Page Rank Problem
    By asimkhaliq in forum Google Discussion Forum
    Replies: 7
    Last Post: 09-20-2004, 06:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •