All pastes #510298 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-25 20:52 UTC
rendered paste body
<?php
session_start();
// Coded by Starholdest/Elliott Gervais Copyright © 2006-2007
require("../sources/connect.php");
$user = $_SESSION['user'];
$title = mysql_real_escape_string($_POST['title']);
$author = mysql_real_escape_string($_POST['author']);
$bookid = mysql_real_escape_string($_POST['bookid']);
?>

<html>
	<head>
		<title>Add books - Admin CP</title><link rel="stylesheet" type="text/css" href="../sources/style.css">
	</head>
	<div id="bigbox">
	<div id="maintext">
	<h1>Add books</h1>
</html>

<?php
require("../sources/login.php");
?>

<html>
	<form method="POST" action="">
	Title: <input type="text" name="title" size="50" maxlength="100"><br/>
	Author: <input type="text" name="author" size="50" maxlength="100"><br/>
	Book ID: <input type="text" name="bookid" size="5" maxlength="32"><br/><br/>
	<input type="submit" value="Add book"></form>
	<br/><br/><a href="./adminmain.php">Back to the Admin Control Panel</a><br/><a href="./adminbooks.php">View booklist / delete books</a>
</html>