Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $myFile = "testFile.txt";
- $fh = fopen($myFile, 'a') or die("can't open file");
- $date=$_POST['date'];
- $title=$_POST['title'];
- $author=$_POST['author'];
- //$content=$_POST['content'];
- if ( isset( $_POST ) )
- $postArray = &$_POST ; // 4.1.0 or later, use $_POST
- else
- $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
- if ( get_magic_quotes_gpc() )
- $postedValue = htmlspecialchars( stripslashes( $postArray[editor]) ) ;
- else
- $postedValue = htmlspecialchars( $postArray[editor]) ;
- fwrite($fh, $date);
- fwrite($fh, chr(31));
- fwrite($fh, $author);
- fwrite($fh, chr(31));
- fwrite($fh, $title);
- fwrite($fh, chr(31));
- fwrite($fh, $postedValue);
- fwrite($fh, chr(31));
- //fwrite($fh, "\n");
- fclose($fh);
- header("location:login_success.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement