Validate input value against calculated value
Hi Chaps,
Need a bit of guidence with some PHP code.
I have a Query that estimates a quote ($price_total) for a job.
The estimate ($price_total) is the value of an input (jobquote), and the database is updated once the form is submitted (using a seperate script.php page).
What I need, is to validate the entered value of 'jobquote' against the estimated value of $price_total, just incase a 'custom' price has been agreed with a customer.
If the values are different, then I need an 'admin override' radio button (admin_quote enum('y','n')) to appear.
If someone can help or point me in the right direction, I'd be most grateful.
Cheers
