How can we submit a form without a submit button?

Answer Posted / bharat

we can click the image or text link.

for example:

<script>
function formsubmit()
{
document.form1.action="Page Name here you want to go that
page";
document.form1.submit();
}
</script>

<form name="form1" method="post">
<a href="#" onclick="formsubmit();">Click here</a>
</form>

Is This Answer Correct ?    196 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

524


What is the use of post in php?

497


How to get the http request in php?

568


Is php an object or array?

510


What is phpsessid?

512






What is a closure in php?

531


What is the Default syntax used in PHP?

589


What is difference between php and wordpress?

498


When do you use define() and when do you use const. What are the main differences between those two?

573


What is action hooks and filter hooks?

488


What are examples of dependent variables?

530


What is alias in php?

548


What is static variable in php?

602


What is php explain?

500


What is cookie and session in php?

499