Results 1 to 2 of 2

Thread: [RESOLVED] GETting CGI variables in PHP from Webform

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    Gulfport, MS
    Posts
    109

    Resolved [RESOLVED] GETting CGI variables in PHP from Webform

    I am using AWeber for an email list on a project I am getting ready to release, however, I am unable to get the posted variables correctly. They send the variables "name", "from", and "custom RegKey" where custom RegKey is a custom field.

    I am using the following code to 'get' the variables:
    Code:
    <?php
    $name = $_GET['name'];
    $email = $_GET['from'];
    $regkey = $_GET['custom RegKey'];
    
    //do more stuff down here...
    ?>
    I am getting the name and email (name and from respectively), but am not able to get the "custom RegKey". I thought maybe the space between "custom" and "RegKey" was making it mess up but they cannot pass the variables any other way.

    Any ideas on how I can make this work to retrieve the value of 'custom RegKey'?

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    Gulfport, MS
    Posts
    109

    Re: GETting CGI variables in PHP from Webform

    figured it out - seems AWeber tells you they are sending your key one way and then send it another.

    I used a quick script:
    Code:
    <table border="1">
    <tr><th>variable</th> <th>value</th></tr>
    <?
    foreach($_GET as $variable => $value)
    {
        echo "<tr><td>" . $variable . "</td>";
        echo "<td>" . $value . "</td>";
    }
    ?>
    </table>
    This gave the string as custom_regkey...

    Oi Vai!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width