Results 1 to 4 of 4

Thread: HMTL code error

  1. #1
    Join Date
    Sep 2004
    Posts
    5

    Default HMTL code error

    I am using Dreamweaver 4.
    The code checker is showing that there is a problem with these two lines, (marked in red).
    These errors do not seem to interfere with the running og the program but they are an anomaly.
    I do not have the knowledge to figure it out.
    Can anyone help??

    //
    // replace paragraphs with new lines (line feeds)
    //
    $s_str = preg_replace('/<p[^>]*?>/i',$s_line_feed,$s_str);
    //
    // replace breaks with new lines (line feeds)
    //
    $s_str = preg_replace('/<br[[:space:]]*\/?[[:space:]]*>/i',$s_line_feed,$s_str);

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: HMTL code error

    Hi,

    Code checkers are not perfect and for some reason it's looking inside a string and claiming there's something wrong.

    The problem is almost certainly that Dreamweaver 4 doesn't understand PHP code.

    Apparently Dreamweaver MX does understand PHP.

    Are you getting a specific error message or is it just highlighting the code in a different colour?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Sep 2004
    Posts
    5

    Default Re: HMTL code error

    Just a different colour - seems to make no difference to the operation of the program.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: HMTL code error

    Just ignore it then.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Derivation - Conflicting HTML Code
    By stanbridge in forum Community Support
    Replies: 2
    Last Post: 16-Nov-2006, 02:04 AM
  2. faulty call home code?
    By pentahexamine in forum FormMailEncoder/Decoder
    Replies: 4
    Last Post: 01-Nov-2006, 04:53 PM
  3. Sample Conditions Code
    By railer in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-May-2005, 04:01 PM
  4. secure code foronline payement
    By EPierre in forum FormMail Subscription Support
    Replies: 3
    Last Post: 22-Feb-2005, 03:20 AM
  5. new code for multiple checkboxes
    By nevdev in forum FormMail Subscription Support
    Replies: 2
    Last Post: 15-Jan-2005, 10:39 PM

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
  •