I have made a 'Events' form that will take registration and payment for various events. The form requires a user to enter some information for registration (name, phone, email, address, etc) and enter the number of tickets they would like to purchase.
The form itself is functioning as intended with one small issue. I require testing for a specific condition, whether there are enough tickets remaining/available to process the payment.
The logic for this validation boils down to if there are enough tickets, continue processing the form. If there are not enough tickets available, then stop processing the form (similar to an incorrect Captcha code). I would prefer that this validation be php based and not js.
I am able to code the php validation, but am a little lost as to how to stop the form from processing. Any ideas or suggestions would be greatly appreciated.
The form itself is functioning as intended with one small issue. I require testing for a specific condition, whether there are enough tickets remaining/available to process the payment.
The logic for this validation boils down to if there are enough tickets, continue processing the form. If there are not enough tickets available, then stop processing the form (similar to an incorrect Captcha code). I would prefer that this validation be php based and not js.
I am able to code the php validation, but am a little lost as to how to stop the form from processing. Any ideas or suggestions would be greatly appreciated.