Here is what i would like the out come to look like
Some discription **Skip a line** More discription **skip another line** and so on
here is the file, what would i have to add to make it do that.
<?
//change database settings
$usr = "usr";
$pwd = "pwd";
$db = "db";
$host = "localhost";
//connect to database
$cid = mysql_connect($host,$usr,$pwd);
mysql_select_db($db);
if (mysql_error()) { print "Database ERROR: " . mysql_error(); }
?>
<?
//this is processed when the form is submitted
//back on to this page (POST METHOD)
//Define variables
if ($_SERVER['REQUEST_METHOD'] == "POST")
{
//escape data and set variables
$title = $_POST["title"];
$review = $_POST["review"];
$posted_by = $_POST["posted_by"];
$date = date("j, n, Y");
//setup SQL statement
$sql = " INSERT INTO product_reviews ";
$sql .= " (title, review, posted_by, date) VALUES ";
$sql .="('$title','$review','$posted_by','$date')";
//execute SQL statement
$result = mysql_query($sql, $cid);
//check for error
if (mysql_error()) { print "Database ERROR: " . mysql_error(); }
print "<p>Your review has been added to our database. Thanks you.</p>\n";
}
?>
<form name="addreview" action="addreview.php" method="POST" style="font-family: Verdana; font-size: 8pt">
<p align="left"><br />
Review Title:
<input type="text" name="title" size="50" style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #000000" />
<br />
<br />
Product_review:
<textarea name='review' rows=20 cols=40 style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #000000"></textarea>
<br />
<br>
Your Name/Username:
<input type="text" name="pasted_by" size="16" style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #000000" />
<br>
<br />
</p>
<ul>
<ul>
<ul>
<p align="center">
<input type="submit" value="Add Review" style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #000000; float:left" /></p>
</form>
What would i have to add to make it do that. If you understand what i mean.
Edited by mbx5nitro, 18 July 2005 - 06:37 PM.
