What potential issue arises when using "<?$_SERVER['PHP_SELF']?>" in the code?

Using `<?$_SERVER['PHP_SELF']?>` in the code can potentially lead to a Cross-Site Scripting (XSS) vulnerability if the user input is not properly sanitized. To prevent this issue, it is recommended to use `htmlspecialchars()` function to escape any HTML special characters before displaying user input.

&lt;?php echo htmlspecialchars($_SERVER[&#039;PHP_SELF&#039;]); ?&gt;