- สร้าง Form โดยให้ method เป็น get และ action = "http://www.google.com/search"
- สร้าง ช่อง input โดยให้ name="q"
ตัวอย่างโค้ด
Code: Select all
<form method="get" action="http://www.google.com/search" >
<input type="text" name="q">
<input type="submit" value="Search">
</form>