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
    .NET 3.5 Beta SP1, Visual Basic 2008 Express

    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.

    When I try to do the following:

    <title>Reg Success</title>
    <h1>You've been sucessfully registered <?php echo $_GET['uname'] ?>!</h1>
    It's blank where the uname should be. This is how the URL is constructed:

    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

    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)