[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'?
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!