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
Tell me what is the difference between ereg_replace() and eregi_replace()?
What is a php class?
How can you retrieve data from the mysql database using php?
List some array functions in php?
What is the difference between Split and Explode in PHP?
Tell me what are the correct and the most two common way to start and finish a php block of code?
How to access standard error stream in PHP?
How to test if a variable is an array?
Explain some of the php string functions?
How to connect to mysql from a php script?
What does pear stand for?
How does php serialize work?
Are sessions stateless?
Is empty in php?
What is difference between readonly and constant?