Jump to content


server[REQUEST] noob problem

  • Please log in to reply
1 reply to this topic

#1 Mantis_Atlantis

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 21 February 2006 - 02:49 AM

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>

I also tried

<a href="<?php echo $server['PHP_SELF']; ?>&do=1">yes</a>

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 21 February 2006 - 02:58 AM

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?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users