Form Php




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



session_start ();
if (! isset ( $_SESSION ['processing'] )) {
  $_SESSION ['processing'] = false;
}
if ($_SESSION ['processing'] == false) {
  $_SESSION ['processing'] = true;
    //validation 
  if ($file = fopen ( "test.txt", "w+" )) {
    fwrite ( $file, "Processing" );
  } else {
    echo "Error opening file.";
  }
  echo $_POST ['yourname'];
  unset ( $_SESSION ['processing'] );
}
?>