1

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

2 Answers 2

1

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>
Sign up to request clarification or add additional context in comments.

Comments

0

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>

1 Comment

Browsers will destroy any existing query string when submitting a form, so that will lose the event parameter.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.