Hi guys! I've got a form which has several text areas which is sent to the database perfectly on submit...

Now, on the same form i have total_price displayed within a <div> tag. How would i send the value of total_price to the database?

I'm using the following code...

PHP Code:
include 'db.php';

$err = array();
                     
if(
$_POST['checkout'] == 'Checkout'

foreach(
$_POST as $key => $value) {
    
$data[$key] = filter($value);
}


if(empty(
$err)) {
$sql_insert "INSERT into `checkout`
              (`total_price`,`data_created`
            )
            VALUES
            ('
$data[total_price]',now()
            )"
;
            
mysql_query($sql_insert,$link) or die("Insertion Failed:" mysql_error());
header('Location: thankyou.php');
}}