This question is an exact duplicate:
- PHP form action 1 answer
There is some form
<form action="" method="post" id="form-vidguki"> in which the action field is empty, there is a captcha check in the form, the captti check is implemented in php. If the captcha is entered incorrectly, then it simply returns to the same page (add review page). If the captcha is entered correctly, it is necessary to carry out the action, after which the data is transferred from the form to the file adding a review to the database, how to do it? Or in a different way, how to implement action only after checking the captcha?