• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Stop form after submit but before Insert into DB.

Stop form after submit but before Insert into DB. 11 years 11 months ago #23565

  • anthony.burge
  • anthony.burge's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 3
I'd like to implement an alternative payment method without writing a plugin. To do that I would like to check if the payment was successful in the $_POST form data section. If it were not successful, I'd like to stop the form from being processed.

QUESTION
Is it possible to cancel the form from the $_POST form data section? IF no, is there an alternative way that I can do my check and stop the form AFTER the user has submitted the form?

Any thoughts much appreciated :)

EDIT
I'm using a point system as the payment method, so one idea I had was that I should prepopulate a hidden field with the available points and then based on the payment amount calculate whether they have enough points or not. If not, cause the form to not validate.
Last Edit: 11 years 11 months ago by anthony.burge.
The administrator has disabled public write access.

Stop form after submit but before Insert into DB. 11 years 10 months ago #23792

  • anthony.burge
  • anthony.burge's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 3
I believe I am on the right track. This post shows more information on how to go about it.

http://www.rsjoomla.com/support/documentation/view-article/602-php-scripts.html
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!