Forum Moderators: coopster

Message Too Old, No Replies

To reset PHP query String

reset/delete php query string after use

         

Ananthi

8:32 am on Jan 11, 2007 (gmt 0)

10+ Year Member



Iam using

header("Location:intro.php?disp=Hello&&show=1")

to redirect to intro.php from action.php

Once the page is redirected the query iam passing should be dislpayed in alertbox.Iam successfully finished this task.

Now i want to delete this query string after it is displayed in alert box so that when intro.php is refreshed alert box cannot displayed

please somebody help to make query string reset after it is displayed in alert box.

barns101

1:30 pm on Jan 11, 2007 (gmt 0)

10+ Year Member



I think you'd need to refresh the page. So you could either get your JavaScript to direct the visitor to intro.php when they click "OK" to the initial alert box, or use a META refresh tag set to 0 seconds in the head section of the page (but only display it when $_GET["disp"] and $_GET["show"] are present).