Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- if (!$_POST){print_form();die();}
- ?>
- <?
- $author=$_POST["author"];
- $email=$_POST["email"];
- $title=$_POST["title"];
- $content=$_POST["content"];
- $content = str_replace("<", "<", $content);
- $content = str_replace(">", "&rt;", $content);
- $fname = date('H:i:s-j/F/Y');
- $file = "$fname.php";
- $cf = fopen($file, "w") or die("Error: file does not exits, and it can not be created.");
- fputs($cf, " Author name: $author \n Author Email: $email \n Article Title: $Title \n\n <hr> \n $content");
- fclose($cf);
- function print_form(){
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset-UTF-8" />
- <meta name="keywords" content="prophit, prophit.frih.org, prophit.com, profit, online business, extra money, income" />
- <meta name="description" content="" />
- <meta name= "Author" content = "Jon=Kyle Bailey" />
- <link rel="shortcut icon" href="http://prophit.frih.org/images/favicon.gif">
- <link rel = "stylesheet" title = "Stylesheet" type = "text/css" href = "http://prophit.frih.org/web.css">
- <title>Submit Article - Prophit</title>
- <script language="JavaScript" src="http://prophit.frih.org/qTip.js" type="text/JavaScript"></script>
- </head>
- <body>
- <div class = "header"><img src="http://prophit.frih.org/images/title.png" />
- <div class = "content">
- <script type="text/javascript">
- if (navigator.appName == "Microsoft Internet Explorer")
- {document.write("<font><b><i>This website is not compatible with Internet Explorer. Please install Google Chrome or Mozilla Firefox.</i></b></font>")}
- </script><br />
- <form action="<? $PHP_SELF; ?>" method="post">
- Your name:<input title="Enter your name" name="author" size="30" type="text"> <br>
- Your E-Mail:<input title="Enter your e-mail" name="email" size="30" type="text"> <br>
- Article Title:<input title="Enter your article's title" name="title" size="30" type="text"> <br>
- Article Content:<br>
- <textarea title="Type your article here" name="content" cols="80" rows="25">
- </textarea>
- <br>
- <div style="text-align: center;">
- <input value="Submit" type="submit">
- </div>
- </form>
- </body>
- </html>
- <center>
- <script type="text/javascript"><!--
- google_ad_client = "pub-3514985723096531";
- /* ProphitContent1 */
- google_ad_slot = "2620373101";
- google_ad_width = 468;
- google_ad_height = 15;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script></center>
- <center><font color="#7dacda">.</font><div class = "footer">
- <script type="text/javascript"><!--
- google_ad_client = "pub-3514985723096531";
- /* ProphitFooter1 */
- google_ad_slot = "7541579192";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div></center>
- </div>
- </div>
- </body>
- </html>
- <?
- } // the function finishes here
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement