If I use the following code:
<p align="center" style="color:#FF0000">
Are you sure you want to delete this <?php
echo $_GET['type']; ?>?<br>
<a href="<?php echo $_SERVER['REQUEST_URI']; ?>&do=1">yes</a>
or <a href="index.php">Index</a>
</p>
Everything works fine until I click on yes. I then get a Page Not Found error and the following is in my address bar:
http://localhost/Ch_6/&do=1
If I understand what this code should do, I think what I should be getting back is:
http://localhost/Ch_6/delete.php&do=1
Is this error caused by the fact that I'm using localhost? I've gone through the code looking for a syntax error (my most favorite thing to do to myself :)) but I don't see it.
Any help would be much appreciated!