@{
If (f1) // What should i write here if i want to execute code if comes from form f1
{
}
else if (f2) // What should i write here if i want to execute code if comes from form f2
}
<html>
<form id="f1" name ="f1" action="" method="POST">
<input type="text" name ="name" value="name" />
<input align ="center" type="submit" value='Submit'/>
</form>
<form id="f2" name ="f2" action="" method="POST">
<input type="text" name ="profession" value="profession" />
<input align ="center" type="submit" value='Submit'/>
</form>
</html>
I want to execute a code on the basis of form submission .
uahmed
Member
21 Points
14 Posts
handling multiple submit in one form
Mar 14, 2012 08:07 PM|LINK
Hi
I want to handle multiple submit in one form
@{ If (f1) // What should i write here if i want to execute code if comes from form f1 { } else if (f2) // What should i write here if i want to execute code if comes from form f2 } <html> <form id="f1" name ="f1" action="" method="POST"> <input type="text" name ="name" value="name" /> <input align ="center" type="submit" value='Submit'/> </form> <form id="f2" name ="f2" action="" method="POST"> <input type="text" name ="profession" value="profession" /> <input align ="center" type="submit" value='Submit'/> </form> </html>I want to execute a code on the basis of form submission .