First of all, thanks!
Secondly, regarding passing variable as inputs I did it something like this and works perfectly:
<!DOCTYPE html> <html> <body> <form action="<?php echo $_GET['action']; ?>" method="get" name="redirect"> <?php foreach ($_GET as $key => $value) { ?> <?php if ($key != 'action') { ?> <input type="hidden" name="<?php echo $key; ?>" value="<?php echo $value; ?>" /> <?php } ?> <?php } ?> </form> <script> document.forms['redirect'].submit() </script> </body> </html>
First of all, thanks!
Secondly, regarding passing variable as inputs I did it something like this and works perfectly: