Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


•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 / sei thu htun

You can use single button and use javascript for submit
eg.
<script type="text/javascript">
function submitform()
{
document.getElementById("your_form_id").submit();
}
</script>

//in html form
<input type="button" value="Submit" onclick="submitform();"/>

Is This Answer Correct ?    22 Yes 2 No

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

Answer / creatore

simple use javascript
document.form_name.submit();

Is This Answer Correct ?    12 Yes 2 No

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

Answer / bharat pradhan

<script type="text/javascript">
function pick()
{
document.form1.action="submit.php";
document.form1.submit();
}
</script>


<form name="form1" id="form1" method="post" onsubmit="pick()">
<input type="text" name="T1" id="T1">
</form>

Is This Answer Correct ?    8 Yes 3 No

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

Answer / prantik gautam

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<title>submit a form without a button</title>
</head>
<body ondblclick="document.frm_nm.submit();">
<form action="" method="post" name="frm_nm">
<input type="text" id="txt" size="25"/>
</form>
</body>
</html>

Is This Answer Correct ?    3 Yes 1 No

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

Answer / tejash gajjar

You can use single button and use javascript for submit
eg.
<script type="text/javascript">
function submitform()
{
document.getElementById("your_form_id").submit();
}
</script>

//in html form
<input type="button" value="Submit" onclick="submitform
();"/>

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More PHP Interview Questions

I have 10 elements of Array, how can i remove 5 array element, with single function.

13 Answers  


Is python similar to php?

0 Answers  


Explain what is the use of "echo" in php?

0 Answers  


In mail($param1, $param2, $param3, $param4), the $param2 contains__

1 Answers  


What is 'float' property in css?

0 Answers  


What are the array functions in php?

0 Answers  


Which php framework is best for web development?

0 Answers  


How can we destroy the session, how can we unset the variable of a session?

5 Answers  


Is laravel frontend or backend?

0 Answers  


Does strlen include null?

0 Answers  


Why do we use in php?

0 Answers  


Is php case sensitive?

0 Answers  


Categories