Jump to content

server[REQUEST] noob problem


Mantis_Atlantis

Recommended Posts

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>
Link to comment
https://forums.phpfreaks.com/topic/3499-serverrequest-noob-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.