•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

Explain difference between urlencode and urldecode?

560


How does api connect to database?

564


What is faster?

562


What is difference between static and final in php?

533


Php code to find whether a number armstrong or not?

549






What are advantages of .htaccess?

533


How to download and install php on windows?

606


Is age nominal or ordinal?

514


What is the use of trim function in php?

527


How to include a file code in different files in php?

512


What does the unset() function mean?

567


What is the use of htmlspecialchars in php?

526


How to remove html tags from data in php?

628


What is super keyword in c++?

591


What is the difference between query and inquiry?

496