Cant use submit button

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 " "; echo " "; // ----------------------------------- /* echo " "; */ // ----------------------------------- echo " "; */ // ----------------------------------- echo "
"; $fi = "nettotest.txt"; if (file_exists($fi)) { echo readfile("nettotest.txt"); } else { echo "file do not exist"; } echo "
Search
"; // ----------------------------------- /* echo "
"; } ?>

Dude,

I dont use code to create those kind of forms anymore, i use a code generator to help me out, do you ever used one?

Sponsor our Newsletter | Privacy Policy | Terms of Service