My current challenge involves creating a search functionality using HTML based on the username entered, such as 'user'.
Upon clicking the search bar, the page should redirect to http://localhost/searchuser/user
I am encountering difficulties with implementing this feature using the GET method from the input field.
Can someone confirm if my usage of
<form action="/searchuser" + username>
is correct?
Snippet:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {box-sizing: border-box;}
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
(Additional CSS and HTML content removed for brevity...)