CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> PHP

 redirect with parameter

Print topic Send  topic

Author Message
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

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

Any help will be great! Thanks...

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.