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
Is php class name case sensitive?
How does php session work?
What is the method to execute a php script from the command line?
What are the design patterns in php?
What is php session_start() and session_destroy() function?
How to take a substring from a given string?
What is meant by public, private, protected, static and final scopes?
Which is useful for method overloading?
What are the rules in creating php variable?
How does php serialize work?
What language is php based on?
How does the identity operator ===compare two values in PHP?
Why do we need session?
Explain the difference between isset() and empty()?
Are php session secure?