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

Describe PHP error and logging information?

549


Php error constants and their descriptions

594


What websites use php?

533


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable

1528


Explain the purpose of output buffering in php.

520






Tell me what library is used for pdf in php?

533


Why namespace is used in php?

555


Can php run without server?

570


What is empty php?

510


Why do we use query?

514


Do you know what is the use of the function 'imagetypes()'?

507


What are the advantages of stored procedures?

565


Can we use session in mvc?

569


What are php magic quotes?

521


How do you check if an arraylist is empty?

534