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
<!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"></script>Result
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">


Code:<?php
set_include_path( '../../include' );
error_reporting (E_ALL ^ E_NOTICE);
$str=<<<eot
<!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"></script>Result
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">