yes, it worked just fine. thank you. moving forward
when i add the code that follows i get a server error message:
[php]
// define variables and set to empty values
$item = $temple = $quantity = $price = $promotional = “”;
if ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$item = new_orders($_POST[“item”]);
$temple = new_orders($_POST[“temple”]);
$quantity = new_orders($_POST[“quantity”]);
$price = new_orders($_POST[“price”]);
}
function ordertest01($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
$item = htmlspecialchars($_POST[‘Item’]);
$temple = htmlspecialchars($_POST[‘Temple’]);
$quantity = htmlspecialchars($_POST[‘Quantity’]);
$price = htmlspecialchars($_POST[‘Price’]);
$stmt->bindParam(’:item’, $item);
$stmt->bindParam(’:temple’, $temple);
$stmt->bindParam(’:quantity’, $quantity);
$stmt->bindParam(’:price’, $price);
$result = $dbh->exec("INSERT INTO new_orders(Item, Temple, Quantity, Price, Promotional) VALUES (':item', ':temple',
‘:quantity’, ‘:price’");
header( “Location: http://www…com/…html” )
/*** close the database connection ***/
$dbh = null;
[/php]
i will look into the apps that were suggested by Pretty Homepages, thanks.