|
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%"> </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
"it\'s"
</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]
|