How can we submit a form without a submit button?
Answers were Sorted based on User's Feedback
<script>
function doSubmit()
{
var frm = window.document.frmName;
frm.action="path to php file";
frm.method = post;
frm.submit();
}
</script>
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / sakthiopr
document.Formname.action = "filename to be submit"
| Is This Answer Correct ? | 3 Yes | 2 No |
What are magic methods in php
Write a program to get second highest number in an array using php?
What are the different types of statements that are present in php?
What is the difference between the functions strstr() and stristr()?
what is constructor in a class, how it is work, how it is call?
How to copy a file?
What is difference between single quotes and double quotes in php?
What is the function to count elements in an array in PHP?
Tell me how can we automatically escape incoming data?
Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?
How can we calculate the similarity between two strings?
What is the difference between get and post in php?