Trisiana
|
Posted: 03/16/2004, 2:18 AM |
|
Hi, can somebody help me?
I am trying to dynamically redirect user after they add comment in my
guestbook to thanks.php pages with message parameter like this, but
failed...
My code in embed code after insert event=
$Message="Your comment has been recorded in our system";
global $Redirect;
$Redirect = "Thanks.php?Message=" . $Message;
I am also trying to use this code in embed code after insert event =
$URL = "http://" . getenv("SERVER_NAME") . getenv("REQUEST_URI");
$URL = substr($URL,0,strrpos($URL,"/")) . "/";
$Message="Your comment has been recorded in our system"
header("Location: $URL" . "Thanks.php?Message=$Message");
But the problem is getenv("REQUEST_URI") is empty ( I am using
WinXP,PHP4.3,MSSQL)???
Any help will be great! Thanks...
|
|
|
|