What potential issues can arise from using the provided PHP script for a guestbook, especially in terms of data organization and display?

Potential issue: The provided PHP script does not sanitize user input before displaying it, which can lead to security vulnerabilities such as cross-site scripting attacks. To solve this issue, it is essential to sanitize user input to prevent malicious code execution.

// Sanitize user input before displaying it
$name = htmlspecialchars($_POST['name']);
$message = htmlspecialchars($_POST['message']);