There is a form with a post request. First I would like to make the button inactive, or click to display an error message.
<form action="out.php" method="post"> <p>Укажите вашу ссылку: <input type="text" name="longurl" value="ссылка" /></p> <p>Описание: <input type="text" name="comment" value="описание" /></p> <input type="submit" name="button" value="OK"> </form>
And below I bring some records from the database (text - hyperlink)
<?php echo $row['comment']?> <a href="<?php echo $row['url']?>"> Посетить </a>
I need, so that for some number of clicks on hyperlinks, the button becomes available or the message about the availability of the button appears.
Tell me how to implement it?