Article 4W8AR get php to print html doc line by line - mine is all one string

get php to print html doc line by line - mine is all one string

by
pizzipie
from LinuxQuestions.org on (#4W8AR)
Just beginning to try to create a PHP form generator. Php ends up producing all one string.

Code:<?php
set_include_path( '../../include' );
error_reporting (E_ALL ^ E_NOTICE);

$str=<<<eot

&lt!DOCTYPE html&gt

&lthtml&gt

&lthead&gt

&ltmeta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt`

&lttitle&gtCreate phpadmin() style SQL box - using dynamic html creation &lt/title&gt

&lt!-- ============== styles ================ --&gt

&ltlink rel="stylesheet " type="text/css" href="css/query.css" /&gt

&lt!-- &ltlink rel="stylesheet " type="text/css" href="css/polly.css" /&gt --&gt

&lt!-- ============== scripts1 ================ --&gt

&ltscript type="text/javascript" src="../../jquery/jquery-2.1.1.js"&gt&lt/script&gt
&ltscript type="text/javascript" src="insertAtCaret.js"&gt&lt/script&gt
&ltscript type="text/javascript" src="connect.js"&gt&lt/script&gtResult

Code:<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" />` <title>Create phpadmin() style SQL box - using dynamic html creation </title> <!-- ============== styles ================ --> <link rel="stylesheet " type="text/css" href="css/query.css" /> <!-- <link rel="stylesheet " type="text/css" href="css/polly.css" /> --> <!-- ============== scripts1 ================ --> <script type="text/javascript" src="../../jquery/jquery-2.1.1.js"></script> <script type="text/javascript" src="insertAtCaret.js"></script> <script type="text/javascript" src="connect.js">latest?d=yIl2AUoC8zA latest?i=iUP2rQsE2kg:JwC32xyO8Yg:F7zBnMy latest?i=iUP2rQsE2kg:JwC32xyO8Yg:V_sGLiP latest?d=qj6IDK7rITs latest?i=iUP2rQsE2kg:JwC32xyO8Yg:gIN9vFwiUP2rQsE2kg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments