•How can we submit a form without a submit button

Answer Posted / sei thu htun

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 ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is config file in php?

540


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

557


Write a program to upload a file in php?

548


Which function is used to strip whitespace?

444


How to add 301 redirects in PHP?

484






Can you pass an array into a function?

562


What is the use of offset in mysql?

530


How do I make a reset button in html?

524


What version of php do I have windows?

490


What are PHP Magic Methods/Functions. List them.

550


What are the differences between GET and POST methods?

536


What is a stored procedure in mysql?

536


What are the correct and the most two common way to start and finish a PHP block of code?

634


Write down the code for save an uploaded file in php.

533


What difference between require() and require_once()?

554