My first time in your site.
I have a script where I can not use a submit button and need to use javascript to submit. Here are a shortened code which I can not make work for me (anyone who can help me? ):
<?php if(isset($_REQUEST['submit'])) { $content = time(); $fi = "nettotest.txt"; $fh = fopen($fi, 'w') or die("can't open file (48) - dot info"); fwrite($fh, $content); fclose($fh); } else { echo " "; printf("", $_SERVER["PHP_SELF"]); echo ""; $fi = "nettotest.txt"; if (file_exists($fi)) { echo readfile("nettotest.txt"); } else { echo "file do not exist"; } echo " |
Search |
"; // ----------------------------------- /* echo " |