Jump to content

Archived

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

Mantis_Atlantis

server[REQUEST] noob problem

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>

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

×

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.