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

What is the difference between file_get_contents() and file_put_contents() in php?

851


What is the difference between require and include in php?

713


How can we create a database using php?

779


What does the array operator '===' means?

732


How is it possible to remove escape characters from a string?

780


How can we increase execution time of a php script?

656


Explain what are the three classes of errors that can occur in php?

709


How can we know the total number of elements of Array?

780


Explain what is the static variable in function useful for?

710


List some sorting functions in php?

719


How to download files from an external server with code in php?

669


How be the result set of mysql handled in php?

858


How many types of php frameworks are there?

673


What is difference between echo and print in php?

674


What are the advantages and disadvantages of cascade style sheets?

856