I have a multi step signup form that I'm building and I have the
following question. Should I do it this way:
<?php
if (blah == 1) {
?><table><td width="100">... .....etc
<?php } else { ?>
<table><td width="100">... .....etc
<?php } ?>
OR
<?php
if (blah == 1) {
echo "<table><td width=\"100"\>. .......etc";
} else
echo "<table><td width=\"100"\>. .......etc";
}?>
If the second way is better is there an easier way to convert the HTML
rather then writting echo a million times by hand?
following question. Should I do it this way:
<?php
if (blah == 1) {
?><table><td width="100">... .....etc
<?php } else { ?>
<table><td width="100">... .....etc
<?php } ?>
OR
<?php
if (blah == 1) {
echo "<table><td width=\"100"\>. .......etc";
} else
echo "<table><td width=\"100"\>. .......etc";
}?>
If the second way is better is there an easier way to convert the HTML
rather then writting echo a million times by hand?
Comment