Ok-Alex
Ok-Alex

Reputation: 558

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 form to url to get link like this:

class.php?event=donbass2012&class=f1a

Upvotes: 1

Views: 268

Answers (2)

Andrius Virbičianskas
Andrius Virbičianskas

Reputation: 556

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>

Upvotes: 0

Quentin
Quentin

Reputation: 943142

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>

Upvotes: 1

Related Questions