Mantis_Atlantis Posted February 21, 2006 Share Posted February 21, 2006 I'd like to let a user delete some info in a database - this requires a call to the server. The echo $_SERVER['REQUEST_URI']; command doesnt work. When I click on "yes" it gives a 404 error message. Index returns the correct page btw. <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>I also tried <a href="<?php echo $server['PHP_SELF']; ?>&do=1">yes</a> Quote Link to comment https://forums.phpfreaks.com/topic/3499-serverrequest-noob-problem/ Share on other sites More sharing options...
fenway Posted February 21, 2006 Share Posted February 21, 2006 I don't understand the question -- you can post back to the same page, but you have to _do_ something with the post back. Where's the problem? Quote Link to comment https://forums.phpfreaks.com/topic/3499-serverrequest-noob-problem/#findComment-12051 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.