|
-
January 31st, 2009, 06:35 PM
#1
Pass Variables
So I have a registration script in PHP that does the registration process and then redirects the person to a registration success page. The url looks like this when they're sent there.
Code:
http://DCL/Webgame/Reg_Suc.html?uname=Alzie
When I try to do the following:
Code:
<HTML>
<HEAD>
<title>Reg Success</title>
</HEAD>
<BODY>
<h1>You've been sucessfully registered <?php echo $_GET['uname'] ?>!</h1>
</BODY>
</HTML>
It's blank where the uname should be. This is how the URL is constructed:
Code:
header( 'Location: Reg_Suc.html?uname='.$_POST['UNAME'] ) ;
So why isn't Get working here? Also, is there anyway to send data through the POST method using PHP when redirecting?
Microsoft Visual Basic 2008 Express Edition
.NET Framwork 3.5 Beta SP1
-
February 1st, 2009, 09:27 AM
#2
Re: Pass Variables
Well, first off, you are using an .html extension. Do you have your .htaccess set to configure the extension as a PHP file?
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|