Hi – I’m having a problem with the HTML and PHP listed in the code below. As you can see, if the user gets the correct password, it should just print out some html, and then go back into the PHP code to finish off the PHP coding for the password system.
Sadly, when it’s executed in any browser, while the HTML does show, the link can’t be clicked on (although it is formatted in the way of the linked stylesheet). See [url]www.flat39.co.uk/canal/admin
Anyway, is this code completely wrong in the world of PHP? Should I be looking for a different way altogether for printing long HTML bits in the middle of a load of PHP code?
[CODE]
if ($username == $correct_username)
{
if ($password == $correct_password)
{
?>
<p>Do you wish to edit… </p>
<li><a href=”newsadmin.php”>CanalInfo News</a></li>
<li>CanalInfo Books</li>
<li>CanalInfo Holiday Reviews</li>
<li>CanalInfo Letters</li>
<?php
}
else
{
print “<p>Incorrect password. Please try again</p>”;
}
Thanks once again for any help! You’re all rather wonderful people! ?