Forum Moderators: coopster
$_POST = $_GET; <form ... Method="POST" ...>
<?php
While(Id <= <total amount of variables you are passing, can be in a hidden field>) :
echo '
<input type="hidden" name="define name any way u can, maybe through the loop again" value="' . $_GET . '" />';
Endwhile;
?>
$getvariables = formfunction::getString($formmaker->getValues());
//
$hiddens = null; // squelch concatenation errors and make error trap easy
$pairs = explode('&',$getvariables);
foreach ($pairs as $pair) {
list($key,$value) = explode('=',$pair);
// Use double quotes and escape output quotes so vars interpolate,
// single quoting 'attributes' is so "duct tape"
$hiddens .= "<input type=\"hidden\" name=\"$key\" value=\"$value\">\n";
}
if ($hiddens) {
echo "
<form method=\"post\" id=\"myform\" action=\"yourscript.php\">
$hiddens
<p>If your browser doesn't redirect you, please use this button to
<input type=\"submit\" value=\"Continue>>\"></p>
</form>
";
}
else { echo "<p>Whoops I tried, didn't work.</p>"; }
<form method="post" id="continueform" action="http://www.example.com/process.php">
<?php
foreach ( $_GET as $name => $value )
{
echo "<input type=\"hidden\ name=\"$name\" value=\"$value\" />";
}
?>
<p>If you are not redirected within 3 seconds, please use this button to continue.</p>
<input type="submit" value="Continue" />
</form>
<script type="text/javascript">
document.getElementById( 'continueform' ).submit();
</script>