开发者

How to insert parameter to url from html form?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜