Hello, I am taking input from a form, I would like to add '2.00' to it. Ive tried
a variety of ways, None of which actually work.
My goal is to keep the $_POST structure, after editing it, If possible.
Here is an example.
$_POST['value'] = $_POST['value'] + 2.00;
$order->checkTotal($_POST['value']);
This should pass the value of the input, plus 2.00, However it returns blank
Ive also tried doing something like
<input type="text" name="number" value="<?php echo $_POST['number'] + 2.00; ?>" />
I think that one fails for obvious reasons, ( it returns the post input without the
addition)
The reason i want to keep the $_POST structure is i will be sending the raw post
data as a whole through a class
I hope i was clear on this, Any help is much appreciated.