I have a form containing the following:
echo"<textarea name='pb' required></textarea>";
echo"<button name='bt'>button1</button>";
echo"<button name='bt'>button2</button>";
echo"<button name='bt'>button3</button>";
echo"<button name='bt'>button4</button>";
echo"<input type=submit name='submit' value='Submit'>";
As you can see in my code, the textarea is required, but I have many buttons. I want only when I press the submit button that the message that the textarea is required is displayed, but when I click the other buttons this message shouldn't appear.