How can we submit a form without a submit button?

Answer Posted / madhu

<script>
function formsubmit()
{
document.form.submit();
}
</script>

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

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Php being an open source is there any support available to it?

807


Which function would you use to format date information in php?

745


What is the difference between $var and $$var?

738


What is foreach loop in php?

729


How many types of inheritances used in php and how we achieve it.

681


Which one is best framework for php?

700


How to calculate the length of a string?

762


Does php have block scope?

690


What is the purpose of $_ session?

688


How can you associate a variable with a session?

772


Explain $_FILES Superglobal Array?

763


What is difference between strstr() and stristr() in PHP?

726


What the difference between the 'bitwise and' operator and the 'logical and' operator?

699


Explain converting an object?

789


Why php is used with mysql?

741