I have this script:

http://novaz3ro.com/misc/php_font.txt

I tried using \ like in the href tag, but it says this error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/virtual/site191/fst/var/www/html/staff/check.php on line 52

Parse error: parse error, expecting ','' or';'' in /home/virtual/site191/fst/var/www/html/staff/check.php on line 52

do any of you know what I should do?

thank you

    echo "<font size=\"2\">Cookies must be enabled to stay logged in</font>";

      echo "<font size=\"2">Cookies must be enabled to stay logged in</font>";
      should be:

      echo "<font size=\"2\">Cookies must be enabled to stay logged in</font>";

        Try again!

        echo "&lt;font size=\"2"\&gt;Cookies must be enabled to stay logged in&lt;/font&gt;";

        should read

        echo "&lt;font size=\"2"\&gt;Cookies must be enabled to stay logged in&lt;/font&gt;";

          BUGGER, try yet again!

          echo "&lt;font size=\"2"\&gt;Cookies must be enabled to stay logged in&lt;/font&gt;";

          should read

          echo "&lt;font size=\"2\"&gt;Cookies must be enabled to stay logged in&lt;/font&gt;";

            what do you mean?

            and why are you calling me a "bugger"?

              you should use quotes if the value (in this case '2') contains characters that arent alpha-numeric

              e.g.

              <input type=hidden name=whatever value='text with spaces or &quot;funny characters'>

              hidden doesnt need quoes.
              whatever doesnt need quotes
              text with spaces etc does need quotes

              hope this helps

                well... I hate those font tags! They are going to dissappear out HTML, did you know?

                Start using CSS... It's the future of building sites!
                😉

                  Originally posted by SiteCubed.com
                  Just don't use double quotes all together:

                  <a href=http://www.siteworkspro.com/affiliates.php> works just as well as <a href="http://www.siteworkspro.com/affiliates.php"> and makes your PHP code easier to read...

                  EVIL! EVIL! WICKED!
                  Read the current (Dec.1999) HTML specification or the more recent XHTML1.0 spec (Jan.2000/Aug.2002)! Quotes are henceforth required for delimiting attribute values.

                    Originally posted by Anon
                    what do you mean?

                    and why are you calling me a "bugger"?

                    It's an expletive, not an invective. An expression of frustration, not contempt. The code isn't getting rendered properly (this is why we have "Preview Reply" and "edit" buttons 😉). "Drat" could've been used instead.

                    Take your pick:

                    echo "<font size=\"2\">Cookies must be enabled to stay logged in</font>"; 
                    
                    echo '<font size="2">Cookies must be enabled to stay logged in</font>'; 
                    
                    echo <<<EOL
                    <font size="2">Cookies must be enabled to stay logged in</font>
                    EOL;
                    

                    Or escape out of PHP completely for the duration:

                    ?><font size="2">Cookies must be enabled to stay logged in</font><?php
                    

                    Best of all (as has been suggested) is to drop <font> tags completely, and stick to CSS. But you'd still need to actually write the code, so the above still applies:

                    echo "<span class=\"note\">Cookies must be enabled to stay logged in</span>"; 
                    

                    etc.

                      Write a Reply...