How can we submit a form without a submit button?

Answer Posted / vikas uniyal

We have to use a javascript function:-


<script language="javascript" type="text/javascript">
document.formname.submit();
</script>

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert a string to uppercase in php?

542


What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

516


How can you get web browser’s details using PHP?

518


How to specify argument default values?

541


What is the alternative structure for control structures?

586






What is the difference between "echo" and "print" in php?

516


How to pass an argument to a function?

547


How to get a random value from a php array?

549


How to get the total number of values in an array?

521


What is the use of super-global arrays in php?

501


Is php a backend?

528


Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?

568


Do you know what is the function mysql_pconnect() usefull for?

499


How to access a Static Member of a Class in PHP?

511


Is null function in php?

563