$amount = (float)@$_GET['amount']; if($amount <= 0) $amount = '0.50'; // Default amount. $amount = number_format($amount, 2, '.', ''); // Format the amount with two decimal points. ?>