How can we submit a form without a submit button?
Answers were Sorted based on User's Feedback
Answer / ravindra chouhan
submit a form without a submit button with the help of
javascript code.
| Is This Answer Correct ? | 35 Yes | 3 No |
Answer / anand chowdhary
This is the prefect answer:
<html><body>
<form action="what_ever.ext" method="post" name="MyForm">
<input type="hidden" name="hiddenfield1" value="<? echo $some_important_value; ?>">
</form>
<script language="javascript" type="text/javascript">
document.MyForm.submit();
</script>
<noscript><input type="submit" value="verify submit"></noscript>
</body></html>
| Is This Answer Correct ? | 18 Yes | 4 No |
Answer / vikas uniyal
We have to use a javascript function:-
<script language="javascript" type="text/javascript">
document.formname.submit();
</script>
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / hitesh shrimali
we can submit form by submit(); function of javascript.
for example:
<form name='xyz' method='post'>
<select name='select' onchange="this.form.submit();">
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>
</select>
</form>
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / selvabalaji
-Submit a form using javascript onclick fuction.
-Submit a form by selecting a option from drop down box using
onchange event
| Is This Answer Correct ? | 0 Yes | 1 No |
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
How can we check the value of a given variable is a number?
Write down the code for saving an uploaded file in PHP.
Tell me how comfortable are you with writing html entirely by hand?
WWhat is the functionality of md5 function in PHP?
equivalent code for the following c program in php void main() { int i=5;printf("%d",i); }
What language is php based on?
i got this error msg in online... how to solve this problem... i couldnot find out as soon as possible send me answer or idea COULD NOT ABLE TO CONNECT DATABASE . Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)
Why does php need server?
Do you know what is the function func_num_args() used for?
How can I add text to an image?
1 Answers IPSR Solutions, Rushmore Consultancy,
Tell me what is the use of "ksort" in php?