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 / 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

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

Answer / mauzzam

You can use javascript to submit a form

Is This Answer Correct ?    237 Yes 35 No

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

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

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

Answer / md raisul azam

Using javascript
document.form.submit();

Is This Answer Correct ?    128 Yes 24 No

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

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

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

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

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

Answer / adnan arif

just use imagelink or you can use vb script for doing this job.

Is This Answer Correct ?    66 Yes 38 No

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

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

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

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

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

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

Post New Answer

More PHP Interview Questions

How long does a session last in php?

0 Answers  


How do you use bcrypt for hashing passwords in php?

0 Answers  


How many bootable file in O/S - XP,2000, and 98. which are the files.

1 Answers   IBM,


Why session timeout is important?

0 Answers  


Inside a php function, what param needs to be set in order to access a global variable?

0 Answers  






What is the meaning of curl , which is used while connecting with pay pal? and how it works?

2 Answers  


What is cookie and session in php?

0 Answers  


What difference between require() and require_once()?

0 Answers  


What’s the difference between md5(), crc32() and sha1() crypto on PHP? -

2 Answers  


What is php glob?

0 Answers  


What is crypt () in php?

0 Answers  


What is the difference between php and core php?

0 Answers  


Categories