dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Pass Variables

  1. #1
    Join Date
    Jun 2007
    Location
    .NET 3.5 Beta SP1, Visual Basic 2008 Express
    Posts
    225

    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

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)