rendered paste body<?php session_start(); ?>
<html>
<head>
<title>Add Style</title>
<script language="javascript" type="text/javascript"
src="./tiny/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE TYPE=”text/css”>
<!--
BODY, P {color: black; font-family: verdana; font-size: 10 pt}
h1 {font-size:29pt; font-weight: bold; color:#9f9;}
H2 {margin-bottom: -10; color: black; font-family: verdana; font-size: 18 pt}
A:link, A:visited {color: #000080; text-decoration: none}
.roll { }
A.roll:hover {color: #8FBc8F}
-->
</STYLE>
<style type="text/css">
<!--
.style1 {font-size: large}
-->
</style>
</head>
<body>
<?php
include 'config/config.php';
if(isset($_POST['save']))
{
$style = mysql_real_escape_string($_POST['style']);
$autho = mysql_real_escape_string($_POST['autho']);
$keywords = mysql_real_escape_string($_POST['keywords']);
$sitename = mysql_real_escape_string($_POST['sitename']);
$des = mysql_real_escape_string($_POST['des']);
if(!get_magic_quotes_gpc()) {
$style = addslashes($style);
$autho = addslashes($autho);
$keywords = addslashes( $keywords);
$sitename = addslashes( $sitename);
$des = addslashes ( $des);
}
$query = "INSERT INTO site (autho, style, sitename, keywords, des) VALUES ('$autho', '$style', '$sitename', '$keywords', '$des')";
mysql_query($query) or die(mysql_error());
echo "'$style' added";
}
?>
<form method="post">
<table width="700" border="0" cellpadding="2" cellspacing="1" class="box" align="center">
<tr>
</tr>
<tr>
<td width="100"><span class="style1">Style</span></td>
<td><input style="font-size:16pt;" name="style" size="30" /></td> </tr>
<td><input style="font-size:16pt;" name="autho" size="30" /></td> </tr>
<td><input style="font-size:16pt;" name="sitename" size="30" /></td> </tr>
<td><input style="font-size:16pt;" name="keywords" size="30" /></td> </tr>
<td><input style="font-size:16pt;" name="des" size="30" /></td> </tr>
<tr>
<td width="200"> </td>
<td> </td>
</tr>
<tr>
<td colspan="2" align="center"><input name="save" type="submit" class="box" id="save" value="Save Article"></td>
</tr>
</table>
</form>
</body>
</html>