CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 redirect with parameter

Print topic Send  topic

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


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 http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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