Jump to content

[SOLVED] Instant redirection


Asday

Recommended Posts

I thihnk this is what you mean:

<?php
  if ($_POST['deletefile']) {
    //delete file here
    header("Location: ".$_SERVER['PHP_SELF']);
    exit;
  }
?>

 

Once the file is deleted the page refreshes itself removing the "del" part from the URL.

I thihnk this is what you mean:

<?php
  if ($_POST['deletefile']) {
    //delete file here
    header("Location: ".$_SERVER['PHP_SELF']);
    exit;
  }
?>

 

Once the file is deleted the page refreshes itself removing the "del" part from the URL.

 

That was what I needed, thanks.

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.