Don't know if this is possible. I'm new to PHP, so I'm just trying random stuff here. I turned my index.html into an index.php so I would have access to if/else statements. Basically I've got this right now:
Code:
....
<dl>
<dt>Are you a new or existing customer?*</dt>
<dd>
<input type="radio" name="Customer" id="customer-new" value="false" /><label for="customer-new">New</label>
<input type="radio" name="Customer" id="customer-old" value="true" /><label for="customer-old">Existing</label>
</dd>
</dl>
<input type="hidden" name="next_form" value="
<?php
$selected_radio = $_POST['Customer'];
if(!($selected_radio))
{
echo('new.html');
}
else
{
echo('existing.html');
}
?>"
/>
<input type="submit" name="submit" value="Next" />
Right now, no matter if "New" (false) or "Existing" (true) is selected it sends me to "new.html", but the FormMail email I get does correctly say true or false based on my choice.
I've got a feeling it's not working because of PHP being server side, so it doesn't evaluate the conditional until after it's already on it's way to the next page? Is this something I would need to the FormMail Computation Module for?
Bookmarks