How can we submit a form without a submit buttom?

Answers were Sorted based on User's Feedback



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

Answer / subrat

form.submit();

Is This Answer Correct ?    34 Yes 4 No

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

Answer / koushik

document.FORM_NAME.action="page.php";
document.FORM_NAME.submit();

Is This Answer Correct ?    26 Yes 4 No

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

Answer / koushik

Javascript form submit

document.FORM_NAME.action="page.php";
document.FORM_NAME.submit();

Is This Answer Correct ?    12 Yes 3 No

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

Answer / arvind pippal(delhi india)

you can call a function in javascript onclick event of any
form element/link and in the function you use any
document.formName.submit(); to submit the form

and above all ans is rights

Is This Answer Correct ?    9 Yes 2 No

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

Answer / abhishek anand

Use image element instead submit button
<input type="img" src="img_path/img_name.src">
give the action page name as action attribute in form
element like
<form name="myform' action="myaction.php">
The Image element will work very similar as submit button.

Is This Answer Correct ?    8 Yes 3 No

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

Answer / jamal

by javascript

Is This Answer Correct ?    7 Yes 3 No

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

Answer / ram gopal verma

<script type="text/javascript">

function validateAndSubmit()
{
if(document.getElementById('user_id').value=='') {
alert('Please enter user id');
document.getElementById('user_id').focus();
}
else
if(document.getElementById('pass').value=='')
{
alert('Please enter password');
document.getElementById('pass').focus();
}else
{
document.form1.submit();
}
}
</script>

<form id="form1" name="form1" method="post" action="action.php" onsubmit="return validate()">

<input type="text" name="user_id" id="user_id" />
<input type="password" name="pass" id="pass" />

<a href="javascript:validateAndSubmit();">Submit Me..</a>

</form>

Is This Answer Correct ?    2 Yes 0 No

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

Answer / kelly baby

k_baby20@yahoo.com

Is This Answer Correct ?    0 Yes 1 No

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

Answer / ashwani kumar(delhi)

1 Function OnChange();
2. Function OnClick()

Is This Answer Correct ?    1 Yes 3 No

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

Answer / nilotpal

Using curl

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More PHP Interview Questions

How can we display information of a variable and readable by a human with php?

0 Answers  


How to find a substring from a given string in php?

0 Answers  


What is the correct and the most two common way to start and finish a php block of code?

0 Answers  


What is == and === in php?

0 Answers  


explain php variable length argument function.

0 Answers  






write a program to print [123] [456] [789] note : braces also need to be printed

1 Answers   Net Solution,


What is The difference between ' and " where they can ben in between or outmost and how

2 Answers   Avis Software,


What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?

1 Answers  


What does type casting mean in php? Explain with an example?

0 Answers  


What are php applications?

0 Answers  


Explain some of the php array functions?

0 Answers  


If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

0 Answers  


Categories