Home > Article > Web Front-end > When submitting a form using the Get method, is it not possible to pass parameters through the URL? _html/css_WEB-ITnose
The code is as follows:
<form method="get" action="test.php?flag=test" target="_blank"> <input type="submit" /></form>
get is to pass parameters after url?.
Either way! But it’s a form! The url address in action='url' can also be modified. It will be displayed in the address bar. When you get the value on the php page, use it as a get method. Get it;v = $_GET['name']
Okay, I won’t ask! If you don’t know, why don’t you come back after doing the experiment?
After submitting according to my code, test.php cannot get the value of flag!
Well, that won’t work. It will reorganize the following parameters.
Okay, I won’t ask! If you don’t know, why don’t you come back after doing the experiment?
After submitting according to my code, test.php cannot get the value of flag!
The poster uses this get method to get the parameters of the url.
index.asp
<% response.write request("flag")%><form method="get" action="index.asp?flag=test"> <input type="submit" /></form>