What potential issues could arise from using the value attribute in the button element in PHP?

Using the value attribute in the button element in PHP can potentially lead to security vulnerabilities such as cross-site scripting (XSS) attacks if the value is not properly sanitized. To prevent this, it is recommended to use a hidden input field to store the value instead of directly setting it in the button element.

<form method="post" action="process.php">
    <input type="hidden" name="button_value" value="submit">
    <button type="submit">Submit</button>
</form>