ugh and also you can use different types of quotes eg
what you're doing
code:
echo "<a href=\"$i\"></a>";
you could just change the html attributes quotes to '
code:
echo "<a href='$i'></a>";
no messy escaping stuff then =p
also you do know you can stop php parsing and start it again right?
code:
<?php
if(isset($_POST['submit']) && $_POST['submit']){
?>
<form>
...input stuff...
</form>
<?php
}
?>