How can we submit a form without a submit button?
Answers were Sorted based on User's Feedback
Answer / sunil
You can submit a form through many diffrent ways without
submit button.
-Submit a form by clicking a link
-Submit a form by selecting a option from drop down box using
onchange event
| Is This Answer Correct ? | 342 Yes | 62 No |
Answer / bharat
we can click the image or text link.
for example:
<script>
function formsubmit()
{
document.form1.action="Page Name here you want to go that
page";
document.form1.submit();
}
</script>
<form name="form1" method="post">
<a href="#" onclick="formsubmit();">Click here</a>
</form>
| Is This Answer Correct ? | 196 Yes | 43 No |
Answer / md raisul azam
Using javascript
document.form.submit();
| Is This Answer Correct ? | 129 Yes | 24 No |
Answer / sagar_joshi
if u want to submit a form without a submit button is simple
in JavaScript u just use a Function "document.form.submit();"
ok. try it now
have a nice day
good bay.. :-)
| Is This Answer Correct ? | 72 Yes | 13 No |
Answer / kiran kumar
WE Can Submit a form without using Submit Function.With the
help of JavaScript Function "document.form.submit();"
| Is This Answer Correct ? | 68 Yes | 18 No |
Answer / adnan arif
just use imagelink or you can use vb script for doing this job.
| Is This Answer Correct ? | 66 Yes | 38 No |
Answer / nilesh
We can also use ajax in code through which we can directly
submit by Onchange or any other event...
| Is This Answer Correct ? | 27 Yes | 12 No |
Answer / saiprasad
<script type="text/javascript">
function submitform()
{
document.forms["myform"].submit();
}
</script>
<form id="myform" action="submit-form.php">
Search: <input type='text' name='query'>
<a href="javascript: submitform()">Submit</a>
</form>
| Is This Answer Correct ? | 12 Yes | 5 No |
Answer / mohit.c.mehta
<form id="form1" name="form1" method="post" action="mm.php">
<INPUT TYPE="IMAGE" SRC="images/any_image.gif" ALT="Submit
button">
</form>
| Is This Answer Correct ? | 33 Yes | 27 No |
What is the difference between echo, print and printf()?
What is the method to register a variable into a session?
How many php based companies in bangalore and chennai and over all india ? most of the persons saying for 2 years and 3 years they will be getting less than 15k per month how far is it true ? is it good scope for experience people can any one tell the exact experience pay for php developers one yr experience how much sal we expect ? two yr experience how much sal we expect ? three yr expereince how much sal we expect ? please kindly reply to the above questions as an experts you only please kindly judge and tell your practical experience in PHP ?
What is laravel php?
How be the result set of mysql handled in php?
How can I find what type of images that the PHP version supports?
How to create a text file in PHP?
What is trim function in php?
What does nan stand for computer science?
how can i upload only pdf files in my website? files has not a pdf extension mantioned
What is mysql_fetch_array?
Which character is used to match exactly one character?