What is the potential issue with passing data through the URL using the GET method in PHP forms?
Passing data through the URL using the GET method in PHP forms can potentially expose sensitive information as the data is visible in the URL. To solve this issue, you can use the POST method instead, which sends the data in the HTTP request body rather than in the URL.
<form method="post" action="process_form.php">
<input type="text" name="username">
<input type="password" name="password">
<button type="submit">Submit</button>
</form>