Announcement

Collapse
No announcement yet.

echo

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • echo

    i try to echo some html codes but when display, it only shows the word 'echo' and nothing else. wat is the problem??

  • #2
    Can you post the code you used....

    Comment


    • #3
      this is the code:

      <?php

      echo "<html>";

      echo "<head>";
      echo "<meta http-equiv=Content-Type content=text/html; charset=windows-1252>";
      echo "<meta name=GENERATOR content=Microsoft FrontPage 4.0>";
      echo "<meta name=ProgId content=FrontPage.Editor.Document>";
      echo "<title>All Free CramNotes and online Practice Exam for mcse, ccna, ccda, ccnp, cne, ocp and checkpoint</title>";
      echo "<meta name=description content=\"CertifyExpress is a I.T Certification Study Sites that cater for Microsoft, Novell, Cisco, CompTIA, Oracle, CheckPoint, Linux and more!\">";
      echo "<meta name=keywords content=\"Mcse, Braindump heaven, A+, A plus, networking,braindumps, network essentials, cramsession, FREE sample tests, novell, cne, netware, linux, rampage, Microsoft Certified Systems Engineer, MCP,Salsakid ,Viol8tr, Pepe, testmaster, Windows NT, Internet Information Server, TCP/IP, Braindump heaven, Microsoft Certified Professional, Windows 95, Workstation, Server, 4.0, SQL, MS Exchange,Free Braindumps, Web, checkpoint, beach front quizzer,MCSD, transcender, SQL 7.0, CISCO, CCIE, CCNA, CCNP, router, switch, I-Net, CIW\">";
      echo "<meta name=revisit-after Content=7 days>";
      echo "<meta name=Robots content=all>";
      echo "<style TYPE=text/css>";
      echo "<!-- ";
      echo "A:link { text-decoration: none }";
      echo "A:active { text-decroation: none }";
      echo "A:visited { text-decoration: none }";
      echo "A:hover {text-decoration: underline}";
      echo "-->";
      echo "</style>";

      echo "</head>";

      echo "<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0 text=#000000 link=#006699 vlink=#006699 alink=#FF3300 background=\"http://www.certifyexpress.com/images/background.gif\">";

      echo "<div id=logo style=\"Z-INDEX: 1; LEFT: 21px; WIDTH: 163px; POSITION: absolute; TOP: 0px; HEIGHT: 60px\">";
      echo "<table cellSpacing=0 cellPadding=0 width=163 border=0>";
      echo "<tbody>";
      echo "<tr>";
      echo "<td><a href=\"http://www.certifyexpress.com/\" target=_top><img alt=CertifyExpress src=\"http://www.certifyexpress.com/images/newlogo.gif\" border=0 width=234 height=60></a></td>";
      echo "</tr>";
      echo "</tbody>";
      echo "</table>";
      echo "</div>";

      echo "<table cellSpacing=0 cellPadding=0 width=100%>";
      echo "<tr>";
      echo "<td bgColor=#7198b6 width=50% height=1>";
      echo "<table border=0 width=775 cellspacing=0 cellpadding=0>";
      echo "<tr>";
      echo "<td width=100% align=right><font size=2 face=Verdana, arial><b><a href=\"http://www.certifyexpress.com\" target=_top><font color=#FFFFFF>Home</font></a>";
      echo " - <a href=\"http://www.certifyexpress.com/forum/index.php?styleid=17\"><font color=#FFFFFF> Discussion Forum</font></a> -";
      echo "<a href=\"http://www.certifyexpress.com/cgi-bin/jobsearch/apexec.pl?search=&amp;etype=jobs&amp;noattribution=1&amp;perpage=25\"><font color=#FFFFFF> Job Seekers</font></a> -";
      echo "<a href=\"http://www.certifyexpress.com/cgi-bin/terms.cgi?go=az_index.html\"><font color=#FFFFFF> Terms &amp; Jargons</font></a></b></font><img height=1 alt src=\"http://www.certifyexpress.com/images/pixel.gif\"></td>";
      echo "<td bgColor=#7198b6 width=7><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=7></td>";
      echo "</tr>";
      echo "</table>";
      echo "</td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td background=\"http://www.certifyexpress.com/images/bg_dot01.gif\" bgColor=#7198b6 colspan=2><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=3 height=3></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=#7198b6 colspan=2><img height=5 alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=white colspan=2><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=3 height=3></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=#7198b6 colspan=2><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=3 height=3></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=#dfebf8 colspan=2><img height=2 alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=#c8d3df colspan=2 align=right>";
      echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
      echo "<tr>";
      echo "<td width=99% align=right><b><i><font face=verdana, arial size=2 color=#006699>Helping you to get Certified!</font></i></b>";
      echo "</td>";
      echo "<td width=2>";
      echo "<img height=1 alt src=\"http://www.certifyexpress.com/images/pixel.gif\">";
      echo "</td>";
      echo "</tr>";
      echo "</table>";
      echo "</td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=#e5e5e5 colspan=2><img height=7 alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td bgColor=white colspan=2>";
      echo "<table border=0 width=775 cellspacing=0 cellpadding=0>";
      echo "<tr><td bgcolor=#FFFFFF>";
      echo "<img height=4 alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1>";
      echo "</td></tr>";
      echo "<tr>";
      echo "<td width=100%><font face=verdana size=2>&nbsp;&nbsp;";
      include ("http://www.certifyexpress.com/forum/homelogin.php");
      echo ",&nbsp;&nbsp;<b>Total Registered Members : <font color=#FF3300>";
      include ("http://www.certifyexpress.com/forum/registered.php");
      echo "&nbsp;</font></b></font>";
      echo "<br>";
      echo "</td>";
      echo "<td bgColor=#FFFFFF width=7><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=7></td>";
      echo "</tr>";
      echo "</table>";
      echo "</td>";
      echo "</tr>";
      echo "</table>";

      echo "<table border=0 width=775 cellspacing=0 cellpadding=0>";
      echo "<tr>";
      echo "<td width=100% bgColor=#e5e5e5 colspan=2><img height=1 alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100%>";
      echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
      echo "<tr>";
      echo "<td width=2% background=\"http://www.certifyexpress.com/images/bg_dot04.gif\"><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "<td width=18% valign=middle align=center>";
      //<!-- START ADCYCLE SSI MEDIA CODE for Top Left -->
      include ("http://www.certifyexpress.com/cgi-bin/adscycle/adcycle.cgi?gid=6&type=ssi&id=911&keywords=ENTER+KEYWORD+LIST");
      //<!-- END ADCYCLE CODE -->
      echo "</td>";
      echo "<td bgColor=#e5e5e5 width=1><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "<td bgColor=#e3ddc8 width=3><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=3></td>";
      echo "<td width=79% align=center bgcolor=#FFFFFF><font face=verdana, arial size=1>";
      //<!-- START ADCYCLE SSI MEDIA CODE for Top of Member Pages -->
      include ("http://www.certifyexpress.com/cgi-bin/adscycle/adcycle.cgi?gid=1&type=ssi&id=275&keywords=ENTER+KEYWORD+LIST");
      //<!-- END ADCYCLE CODE -->
      echo "</font></td>";
      echo "<td width=1 bgcolor=#e5e5e5><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "<td width=1% background=\"http://www.certifyexpress.com/images/bg_dot04.gif\"><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "</tr>";
      echo "</table>";
      echo "</td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100% bgcolor=#FFFFFF>";
      echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
      echo "<tr>";
      echo "<td width=2% background=\"http://www.certifyexpress.com/images/bg_dot04.gif\"><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
      echo "<td width=18% valign=top bgcolor=#C8D3DF>";
      echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
      echo "<tr>";
      echo "<td colspan=3 valign=bottom><img border=0 src=\"http://www.certifyexpress.com/images/studyguide.gif\" width=108 height=19></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=1 bgcolor=#000000 colspan=3><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=1 bgcolor=#000000 rowspan=11><font size=1 face=Verdana><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></font></td>";
      echo "<td width=100% height=1 bgcolor=#DFEBF8><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/microsoft/\">Microsoft</a></font></td>";
      echo "<td width=1 bgcolor=#000000 rowspan=11><font size=1 face=Verdana><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100% bgcolor=#C8D3DF><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/cisc/\">Cisco</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100% bgcolor=#DFEBF8><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/novell/\">Novell</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100%><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/comptia/\">CompTIA</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100% bgcolor=#DFEBF8><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/linux_unix/\">Linux/Unix</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100%><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/prosoft/\">CIW</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100% bgcolor=#DFEBF8><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/oracle/\">Oracle</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100%><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/lotus/\">Lotus</a></font></td>";
      echo "</tr>";
      echo "<tr>";
      echo "<td width=100% bgcolor=#DFEBF8><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/checkpoint/\">CheckPoint</a></font></td>";
      echo "</tr>";
      echo "<tr>";


      to be continue...

      Comment


      • #4
        echo "<td width=100% bgcolor=#C8D3DF><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/sun/\">Sun</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% bgcolor=#DFEBF8><font face=Verdana, arial size=2>&nbsp;<a href=\"http://www.certifyexpress.com/bea/\">BEA</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width =1 colspan=2 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";

        echo "</table><br>";
        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% align=center><a href=\"http://www.cheet-sheets.com\" target=_top><img alt=\"Click Here To Visit Our Sponsor\" border=0 src=\"http://www.certifyexpress.com/images/ads/cheetsheets.gif\" width=120 height=60></a>";
        echo "</td>";
        echo "</tr>";
        echo "</table><br>";

        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% colspan=3><img border=0 src=\"http://www.certifyexpress.com/images/misc.gif\" width=108 height=18></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td height=1 colspan=3 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100% bgcolor=#DFEBF8><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/cgi-bin/books/booksearch.pl?perpage=10&amp;noattribution=1&amp;keyword=certification&amp;tag=dumpsite\"> Book Search</a></font></td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000 rowspan=3><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100%><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/forum/index.php?styleid=17\">Discussion Forum</a></font></td>";
        echo "<td width=1 bgcolor=#000000 rowspan=3><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% bgcolor=#DFEBF8><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/cgi-bin/search/ksearch.cgi?terms=mcse&amp;sort=Matches&amp;display=10&amp;b=1&amp;u=1\">Site Search</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100%><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/misc/search.shtml?search=certification\">Search the Net</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100% bgcolor=#DFEBF8><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/misc/chat.shtml\">Chat Room</a></font></td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100%><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/links/\">Links</a></font></td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100% bgcolor=#DFEBF8><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/misc/webrings.shtml\">Webrings</a></font></td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100%><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/misc/contribute.shtml\">Contribute</a></font></td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000 rowspan=4><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100% bgcolor=#DFEBF8><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/misc/contests.shtml\">Contests</a></font></td>";
        echo "<td width=1 bgcolor=#000000 rowspan=4><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% bgcolor=#C8D3DF><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/hosting/\">Webhosting</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% bgcolor=#DFEBF8><font size=2 face=verdana, arial>&nbsp;<a href=\"http://mail.certifyexpress.com\">E-Mail</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% bgcolor=#C8D3DF><font size=2 face=verdana, arial>&nbsp;<a href=\"http://www.certifyexpress.com/topsites/\">TopSites</a></font></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td height=1 colspan=3 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";
        echo "</table><br>";


        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% align=center><a href=\"http://www.certifypro.com\"><img border=0 src=\"http://www.certifyexpress.com/images/ads/certifypro-mid.gif\" alt=\"Download Your FREE Copt Today !\" width=120 height=60></a>";
        echo "</td>";
        echo "</tr>";
        echo "</table><br>";

        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% align=center><font face=verdana, arial size=1><a href=\"http://www.certifyexpress.com/misc/email.shtml\">E-Mail This Page</a></font></td>";
        echo "</tr>";
        echo "</table><br>";



        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% colspan=3><img border=0 src=\"http://www.certifyexpress.com/images/wol.gif\" width=108 height=18></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% colspan=3 height=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100% bgcolor=#DFEBF8><table width=100%><td bgcolor=#DFEBF8><font face=verdana, arial size=1>";
        include ("http://www.certifyexpress.com/forum/online3.php");
        echo "</td></table></td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=100% colspan=3 height=1 bgcolor=#00000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";
        echo "</table><br>";
        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% align=center>";
        //<!-- START ADCYCLE SSI MEDIA CODE for Lower Left -->
        include ("http://www.certifyexpress.com/cgi-bin/adscycle/adcycle.cgi?gid=3&type=ssi&id=216&keywords=ENTER+KEYWORD+LIST");
        //<!-- END ADCYCLE CODE -->
        echo "</td>";
        echo "</tr>";
        echo "</table><br>";



        echo "<table border=0 width=100% cellspacing=0 cellpadding=0>";
        echo "<tr>";
        echo "<td width=100% colspan=3><img border=0 src=\"http://www.certifyexpress.com/images/survey.gif\" width=108 height=18></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 colspan=3 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td width=100% bgcolor=#DFEBF8>";
        include ("http://www.certifyexpress.com/cgi-bin/survey/poll.pl");
        echo "</td>";
        echo "<td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td width=1 colspan=3 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>";
        echo "</tr>";
        echo "</table>";

        echo "<p>&nbsp;</p>";
        echo "</td>";
        echo "<td width=1 bgcolor=#e5e5e5><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>";
        echo "<td bgColor=#e3ddc8 width=3><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=3></td>";
        echo "<td width=79% align=center valign=top bgcolor=#FFFFFF>";

        ?>

        Comment


        • #5
          Why did you echo all that... all you had to do is put the regular html into the php file, and where you wanted an include just do
          <? include("whatever.html"); ?> and not mess with all of that...


          I'm putting your code on my server to see if it works fine, well not mine, but f2s's....

          http://www.prohacker.f2s.com/cert-exp.php

          Comment


          • #6
            this file works fine with others. but when i try to add it in a.php, it just didnt' look the same...i dono why

            Comment


            • #7
              Something I've seen used too little...

              If your going to be echo()ing a large piece of text, use the Heredoc syntax:
              Code:
              echo<<<myMTML
                <td width=100% bgcolor=#C8D3DF>
                  <font face=Verdana, arial size=2>
                  <a href="http://www.certifyexpress.com/sun/">Sun</a>
                  </font>
                </td>
               </tr> 
               <tr> 
                <td width=100% bgcolor=#DFEBF8>
                  <font face=Verdana, arial size=2>
                  <a href="http://www.certifyexpress.com/bea/">BEA</a>
                  </font>
                </td>
               </tr>
               <tr>
                <td width =1 colspan=2 bgcolor=#000000>
                  <img alt src="http://www.certifyexpress.com/images/pixel.gif" height=1>
                </td>
               </tr>
              myHTML;
              Neatly formated, easily read code. No escaping special characters, and $vars can be place in the text.

              Read more here.

              Comment


              • #8
                so many echoes

                Comment


                • #9
                  this is the url where all the echo's are displayed:

                  http://www.certifyexpress.com/exam/microsoft/index.php

                  Comment


                  • #10
                    i've deleted all the 'echo' . the html codes works but all the files that i include is not working...



                    Comment


                    • #11
                      Awesome tip Max Albert!
                      Chen Avinadav
                      Better to remain silent and be thought a fool than to speak out and remove all doubt.

                      גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                      Comment


                      • #12
                        Tried but failed!

                        I tried using the heredoc but it gives me error with i test it. Wut could be my mistake in adding heredoc.

                        a simplified version of how i add the heredoc into my codes:

                        <?php
                        echo<<<myHMTL

                        <html>;

                        <head>;

                        <table border=0 width=100% cellspacing=0 cellpadding=0>;
                        <tr>;
                        <td width=100% colspan=3><img border=0 src=\"http://www.certifyexpress.com/images/survey.gif\" width=108 height=18></td>;
                        </tr>;
                        <tr>;
                        <td width=1 colspan=3 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>;
                        </tr>;
                        <tr>;
                        <td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>;
                        <td width=100% bgcolor=#DFEBF8>;
                        include ("http://www.certifyexpress.com/cgi-bin/survey/poll.pl");
                        </td>;
                        <td width=1 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>;
                        </tr>;
                        <tr>;
                        <td width=1 colspan=3 bgcolor=#000000><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" height=1></td>;
                        </tr>;
                        </table>;

                        <p>&nbsp;</p>;
                        </td>;
                        <td width=1 bgcolor=#e5e5e5><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=1></td>;
                        <td bgColor=#e3ddc8 width=3><img alt src=\"http://www.certifyexpress.com/images/pixel.gif\" width=3></td> ;
                        <td width=79% align=center valign=top bgcolor=#FFFFFF>;

                        myHTML; //or izzit myMTML??

                        ?>

                        Comment


                        • #13
                          Delete all the ; 's after the HTML.. that was part of the PHP 2

                          Comment


                          • #14
                            look at my example..
                            no semicolons at the end of every line
                            no escaping of double quotes (or any character for that matter)

                            AND VERY IMPORTANTLY:
                            Read the Warning printed in the manual (here):
                            It is very important to note that the line with the closing identifier contains no other characters, except possibly a semicolon (; ). That means especially that the identifier may not be indented, and there may not be any spaces or tabs after or before the semicolon.

                            Probably the nastiest gotcha is that there may also not be a carriage return (\r) at the end of the line, only a form feed, AKA newline (\n). Since Microsoft Windows uses the sequence \r\n as a line terminator, your heredoc may not work if you write your script in a Windows editor. However, most programming editors provide a way to save your files with a UNIX line terminator.
                            The semicolon only comes at the end of the second identifier, and that's to end the echo command.

                            Code:
                            // so..
                            echo "
                            This string is the same as the one below.
                            \"This method of echo()ing requires me to escape all double quotes.\"
                            ";
                            
                            echo<<<myString
                            This string is the same as the one below.
                            "This method of echo()ing does not require me to escape anything."
                            myString;
                            When you choose your identifier for the heredoc syntax, choose a short string that you will not use in the text you are printing. I often use 'myHTML' or 'myString'. The documentation doesn't say, but I believe the identifier is case sensitive.

                            Good Luck,

                            Comment


                            • #15
                              We found the problem, we did not place a space between echo and <<<

                              echo <<<myHMTL
                              <sig removed because it violated the forum rules. Two requests were sent but ignored>

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X