Hi,
I have a need to redirect from a form with method = "POST", and I think the Redirect Action only uses "GET".
I solved this a couple of years ago by inserting the following html form in an html action:
<?php
echo '<form action="https://gotohere.com" method="POST">';
echo '<input type="hidden" name="Email" value=' + $form->data['email'] + '>';
echo '<input type="hidden" name="Id" value=' + $form->data['id'] + '>';
echo '<input type="hidden" name="auth" value=' + $form->data['auth'] + '>';
echo '<input type="submit">';
echo '</form>';
?>
which did the job at the time, but now when I try it in CF6 this gives me an Error 403.
I can't see what I am doing wrong, the form above used to work fine and still does if it is outside the CF6 environment. Unfortunately I need to do this from inside a CF6 form.
Can anyone suggest what is wrong, and a solution?
Thanks
Tim
I have a need to redirect from a form with method = "POST", and I think the Redirect Action only uses "GET".
I solved this a couple of years ago by inserting the following html form in an html action:
<?php
echo '<form action="https://gotohere.com" method="POST">';
echo '<input type="hidden" name="Email" value=' + $form->data['email'] + '>';
echo '<input type="hidden" name="Id" value=' + $form->data['id'] + '>';
echo '<input type="hidden" name="auth" value=' + $form->data['auth'] + '>';
echo '<input type="submit">';
echo '</form>';
?>
which did the job at the time, but now when I try it in CF6 this gives me an Error 403.
I can't see what I am doing wrong, the form above used to work fine and still does if it is outside the CF6 environment. Unfortunately I need to do this from inside a CF6 form.
Can anyone suggest what is wrong, and a solution?
Thanks
Tim