New course! Every coder should learn Generative AI!
Try a free lesson+ 10
RAJEEV PUNNA ... I'm honored that you think so highly of me that you believe I am able to miraculously see your code and any possible mistakes that may exist based solely on a description of what you've done.
But, alas, I hate to disappoint that I am merely human and would need to see the actual code to spot the issue. 😉
+ 9
You don't need to secure the form from being filled. Rather you want to prevent forms from being submitted. That's where challenge response security techniques like CAPTCHA or reCAPTCHA are used.
These services attempt to thwart bot scripts by presenting random challenges that currently cannot be read, heard, or visually identified / selected by such scripts.
Try looking at reCAPTCHA for setting this up in your code.
https://www.google.com/recaptcha/intro/v3.html