Reply to Question on using HTML within PHP documents

Your name:

Reply:


Posted by Tristαn White on 11/06/59 11:50

As some of you who helped with my "No input file selected" query earlier
already know, I've just started a new job and am new to PHP.

All the webpages are PHP, but contain HTML as a string definition. Which is
actually nice and easy for me as I am an HTML specialist, but am a complete
newbie with PHP.

How inadvisable is it though?

Here's what I mean:

<?php

define('NAVBAR_TITLE', 'Shipping');

define('HEADING_TITLE', 'Shipping');

define('TEXT_INFORMATION', '


<table width="90%" border="0" cellpadding="5" height="339">
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%">
<p><font
size="7" face="Verdana, Arial, Helvetica, sans-serif"><b>Don\t know if this
is a good idea</b></font> ..........etc
........

Basically - any HTML can go here, as long as it\'s within a table, and
apostrophes are preceded by a backslash - as I have done above with the word
&quot;it\'s&quot;


</table>

');
?>


Basically, it's just HTML that is copied and pasted into a
define('TEXT_INFORMATION', ' string '

Which is why it ends
');
?>


What are the perils that could face me by continuing to write pages in this
fashion? Could it cause accessibility problems on some browsers?

I know it's terribly lazy but I have an awful lot of work to do and not
enough time just yet to learn good PHP skills.

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация