php - Removing the Name button in the address bar -


When I try to search the form, I get the following entry in the address bar

Check.php? Go_btn = & amp; S = banana

Why should I get the name of the "go_btn" button I should get the price

check .php? S = banana

Why this value

name = "go_btn"

appears in the address bar < / P>

simple_search.html

  & lt; Form action = "check.php" method = "go" id = "my_form" & gt; & Lt; Input name = "go_btn" type = "submit" id = "go_btn" form = "my_form" formaction = "check.php" formmethod = "get" style = "background-image: url (images / go.png); Range: solid 0 px # 000000; width: 71px; height: 55px; "value =" "& gt; & Lt; Input type = "text" name = "s" id = "s" & gt; & Lt; / Form & gt;  

check.php

  & lt ;? Php if (isset ($ _ GET ['go_btn'])) {$ S_find = $ _GET ['s']; If ($ s_find == "banana") {print ("you get ban"); } And {print ("blababla ...."); }}? & Gt;    

OK, enter go_btn s in your code For the ask the following:

   

and then remove the attribute name from the element go_btn from your form as follows:

  & lt; Form action = "check php" method = "get" id = "my_form" & gt; & Lt; Input type = "submit" id = "go_btn" form = "my_form" formaction = "check.php" ...  

Comments