How to post anchor tag value through form.



How to post anchor tag value through form...

Answer / raghava

<html>
<head>

<script>
function formsubmit()
{
document.form1.action="submit1.php";
document.form1.submit();
}
</script>
</head>
<body>
<form name="form1" method="post">
<a href="#" name="something" value="something"
onclick="this.form.submit();">Click here</a>
</form>
</body>
</html>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Web Related AllOther Interview Questions

What's the difference between *.vsdisco and *.disco file?

0 Answers  


How does DTD work?

0 Answers  


Name 3 attributes of the position property.

0 Answers  


What is a Simple Element?

0 Answers  


How to test Web application in which the value is changing dynamic every time and anyone can modify it?

0 Answers  






what is the purpose of websphere?

1 Answers  


When would you use get and post requests?

0 Answers  


what is stub in weblogic? dont give me a defination , iwant full ans with example? also tell what is replica-aware stubs.. ok bye send ans as soon as possible

0 Answers   Wipro,


What is Webget and WebInvoke in rest service? Tell difference between them

0 Answers   HCL,


when my application is overloaded?

0 Answers   CTS,


Explain the functioning of dynamic pages in a website?

0 Answers   NIIT,


What happens when I type in some url and press enter?

1 Answers  


Categories