•How can we submit a form without a submit button

Answer Posted / tejash gajjar

You can use single button and use javascript for submit
eg.
<script type="text/javascript">
function submitform()
{
document.getElementById("your_form_id").submit();
}
</script>

//in html form
<input type="button" value="Submit" onclick="submitform
();"/>

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define soundex()?

511


Explain type casting and type juggling.

554


Explain the difference between session and cookies in php?

506


What changes I have to do in php.ini file for file uploading?

562


What are the 5 types of data?

559






What is the use of $_request variable?

576


How do you call a constructor for a parent class?

507


Tell me what does the array operator '===' means?

526


How to find the index of an element in an array php?

523


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

533


Can you extend a final defined class?

8522


Tell me how to create a text file in php?

548


Explain which cryptographic extension provide generation and verification of digital signatures?

527


How to create a web form?

550


Is php still relevant 2019?

538