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 is user application?

0 Answers  


Who has experience with epik or datafeedscripts.net? What better use for working with Shopzilla API?

0 Answers  


Difference between null and undefined?

0 Answers  


what is the significance of webservice?

1 Answers  


Loop through the color array and print each value to the console. Assume you do not know the amount of colors in the color array.

0 Answers  






How do you troubleshoot when a website displays '404:Page Not Found;'. what are the various steps that you take to diplay the page requested?

0 Answers  


what is web accessibility?

0 Answers  


Where?s global assembly cache located on the system? Can you have two files with the same file name in GAC?

0 Answers  


Can I host muliple sites on same machine?

0 Answers  


How does CGI work? Can I use 'C' language to write a CGI?

0 Answers  


What is the result of “20” + 20;

0 Answers  


what is the difference between require() and include() when an error is encountered?

0 Answers  


Categories