How can we submit a form without a submit button?
Answer Posted / 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 |
Post New Answer View All Answers
What is meant by public, private, protected, static and final scopes?
What are the characteristics of php variables?
Tell me how is the ternary conditional operator used in php?
Tell me what is the difference between ereg_replace() and eregi_replace()?
What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?
What is var_dump function in php?
Can we override static method?
Tell me how is it possible to know the number of rows returned in result set?
Suppose your zend engine supports the mode ?> Then how can you configure your php zend engine to support Mode ?
What do the initials of php stand for?
How to block direct directory access in PHP?
What is action hooks and filter hooks?
What is the current stable version of php? What advance thing in php7?
What is repository in php?
How check submit button is clicked in php?