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
Do you know what's the difference between __sleep and __wakeup?
What is the difference between htmlentities() and htmlspecialchars()?
Is salary fixed or variable cost?
What is api laravel?
How to uploaded files to a table?
What are the file upload settings in configuration file?
Does wordpress run on php 7?
What is helper function?
What is the difference between a session and cookies?
Why json is used in php?
What is htmlentities function in php?
Can php run without server?
Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?
Can you use php and javascript together?
What is "echo" in php?