Prevent users to alter the HTML value of a radio button

By: A C | Asked: 06/04/2024
ForumsCategory: Code SnippetsPrevent users to alter the HTML value of a radio button
A C asked 5 months ago
Hi!

On my page I have a form with radio buttons. These buttons are number values 5, 10, 15, 20, 25 ... 95.

I am storing these in database and then displaying the total in my frontend using the shortcode [frm-stats id=6 type= total]

Somehow someone was able to alter the HTML value (I also tried myself) to something like 999999 and was able to submit that. This of course was saved in database added to the total and this was "faked" in frontend.

How can I prevent it?

Many thanks in advance!
1 Answers
Victor Font answered 5 months ago

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right