i have two form in html

<form action="Default2.aspx" method="post">
    <input type="text" name="txtName" />
    <input type="text" name="txtGame" />
    <input type="submit" value="send" name="test"/>

</form>

<form action="Default2.aspx" method="post">
    <input type="text" name="txtName" />
    <input type="text" name="txtGame" />
    <input type="submit" value="send" name="test"/>

</form>

how can i know which form is send to server ?

Recommended Answers

All 2 Replies

If this is for an asp.net (aspx) page, you should only have one form and it needs the runat attribute with a value of "server".

You can use your code behind page and create functions to handle the click event from the different submit buttons.

As i said , these forms are in html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.