Results 1 to 5 of 5

Thread: Php Error

  1. #1
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Php Error

    I am trying to add a email link to a page and get thie error message

    Parse error: syntax error, unexpected T_STRING in /home2/cruisew/public_html/crvsearch/cruise_book_send.php on line 129

    line 129 <A HREF="mailto:steve@cruisewarehouse.cc">


    Thxs Steve

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That's the generated HTML, not the PHP code, or, if it is PHP, that's not really a correct line (or it's part of several lines of output).

    Include a bit more of the code around that if that is from the PHP source, or get the PHP source instead and post that.

    Generally, errors are from:
    1. Sometimes, the line itself (easy).
    2. Frequently the line before or after, as something was left open or was closed too early, etc.
    This seems the most common because the script will either reach the line in question and not know what to make of it because of something wrong in the line before (ie, missing semi-colon, etc.), or the line after will be confusing so it won't say it reached it yet when outputting the error... might get stuck before that.
    3. Occasionally, esp. with open loops, etc., it will claim there is an error at the last line of your code because it was looping forever.*



    unexpected T_STRING means that there was plain text in the script that doesn't fit.
    Possible reasons:
    1. Typo-- ex: eco 'hi';-- should be "echo"
    2. No quotes, etc. ex: echo test;
    3. Something isn't closed-- ex: echo '1' echo '2';
    4. Improper placement-- ex: function() "string";
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <BR />
    <H4>
    Thank you again for choosing Cruisewarehouse.cc to arrange your cruise vacation. If you have any additional questions or need further information about your trip, please feel free to e-mail or call us and we will be happy to provide this for you.
    <br><br>
    Steve Brooks, Cruise Specialist <br>
    Cruisewarehouse.cc <br>
    Toll Free: (888) 974-7447
    <br><br>


    Email: <A HREF="mailto:steve@cruisewarehouse.cc">
    http://www.cruisewarehouse.cc

    </H4>
    </body>

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    That's just HTML. Have you tried djr33's advice yet?
    Don't just post us your code. Try it yourself. Tell us what happened.

    And, we also need your PHP code.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    PHP code is not visible with View> Source. You must access the .php file directly from the server (FTP, likely), then cut/paste from that.
    Again, the error has nothing to do with output line 129.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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