Form Php


 
function checkandsubmit() { 
  document.test.submitbut.disabled = true; 
  document.test.submit(); 




 Your Name:   type="text" name="yourname" maxlength="150" />



if ($file = fopen ( "test.txt", "w+" )) {
  fwrite ( $file, "Processing" );
} else {
  echo "Error opening file.";
}
echo $_POST ['yourname'];
?>