开发者

How to insert parameter to url from html form?

开发者 https://www.devze.com 2023-04-11 08:02 出处:网络
I have a link class.php?event=donbass2012 and I have a html form. How to send value from for开发者_StackOverflow社区m to url to get link like this:

I have a link class.php?event=donbass2012 and I have a html form. How to send value from for开发者_StackOverflow社区m to url to get link like this:

class.php?event=donbass2012&class=f1a


Just use a normal GET form, with whatever inputs you need.

<form action="class.php">
    <input type="hidden" name="event" value="donbass2012">
    <input type="hidden" name="class" value="f1a">
    <input type="submit">
</form>


Is this what you want?

<form name="input" action="class.php" method="get">
   <input type="hidden" name="event" value="donbass2012" />
   <input type="hidden" name="class" value="f1a" />
   <input type="submit" value="Submit" />
</form>
0

精彩评论

暂无评论...
验证码 换一张
取 消