•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

How check variable is set or not in php?

438


What is an object in php?

527


How to replace a substring in a given string?

537


What is php simple definition?

515


Tell me how to find the length of a string?

591






Which is better get or post method?

439


What are the methods of array in java?

469


How long does a session last in php?

490


What is the purpose of using php?

480


What are php libraries?

473


What is str_replace()?

522


Who developed php?

529


What is use of preg_replace in php?

495


What is $$ in php?

510


How to add 301 redirects in PHP?

450