Jump to content
xisto Community

alex1985

Members
  • Content Count

    398
  • Joined

  • Last visited

Posts posted by alex1985


  1. Please, check the following one:

    <?phpinclude("../config.php");if($submit){$title = $_POST['title'];$short = $_POST['short'];$full = $_POST['full'];if(!$title){echo "Error: The book's title is reguired field. Please, fill it.";exit();}$result = mysql_query("INSERT INTO books (title, dtime, text1, text2) VALUES ('$title',NOW(),'$text1','$text2')",$connect);echo "<b>Thank you! News added Successfully!<br>You'll be redirected to Home Page after (4) Seconds";echo "<meta http-equiv=Refresh content=4;url=index.php>";}else{?><br><h3>Add Books</h3><form method="post" action="<?php echo $PHP_SELF ?>">Title: <input name="title" size="40" maxlength="255"><br>Text1: <textarea name="text1" rows="7" cols="30"></textarea><br>Text2: <textarea name="text2" rows="7" cols="30"></textarea><br><input type="submit" name="submit" value="Add News"></form><?}//end of else?>

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.