first off:
$submitted_amount = (isset($_POST['submitted_amount'])) ? true : false;
shouldn't this be the value of submitted_amount? it will only ever be true or false.
quick fix would be to change true to $_POST['submitted_amount'], however you'll be leaving yourself wide open to SQL injection unless you add some variable checking somewhere in there.
jnpcl
2010-10-16 00:25:36