I have a manually create form on one template that posts to a second template. The second template is set to PHP parse on input, but doesn’t see any $_POST parameters.
Here is the form:
<form action="/signup/step2" method="POST">
Email: <input type="text" class="text" name="email" class="input" size="25" />
<input type="submit" class="button" value="Sign Up" /></p>
</form>In the signup/step2 template, I have tried all of these to no avail.
<?php
echo $_POST['email'];
echo $_REQUEST['email'];
global $IN;
print_r($IN->GBL('email','POST'));
?>I also tried {exp:parameters:get name="email"} using the GET/POST parameters plugin.
All of these return an empty string.
I printed a phpinfo() on my step2 template and noticed that there was a _REQUEST[”/signup/step2/”] variable set, but no _REQUEST[“email”] variable.
Is it normal for PHP to see templates/template groups as _REQUEST variables of index.php?
I’m on MediaTemple DV if it matters. I’m leaning towards this being a PHP config issue, but am not sure what needs to be tweaked.
Any thoughts?