How can we submit a form without a submit button?

Answers were Sorted based on User's Feedback



How can we submit a form without a submit button? ..

Answer / pankajbisane

<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

How can we submit a form without a submit button? ..

Answer / sakthiopr

document.Formname.action = "filename to be submit"

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More PHP Interview Questions

What is the difference between indexed and associative array?

0 Answers  


What is isset and unset in php?

0 Answers  


equivalent code for the following c program in php void main() { int i=5;printf("%d",i); }

2 Answers  


How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP

6 Answers   Wipro,


Tell me what are the functions to be used to get the image's properties (size, width and height)?

0 Answers  


How to get the directory name out of a file path name?

0 Answers  


How to install PHP with --mcrypt and --mhash?

1 Answers  


What is polymorphism with example in php?

0 Answers  


How easy is php?

0 Answers  


WHat is the diff. between PHP4 and PHP5?

6 Answers   Clarion Technologies, IBM, OmniNet, Sparkton Infotech,


How can we change the maximum size of the files to be uploaded?

0 Answers  


What is purpose of @ in Php?

0 Answers  


Categories