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
Can you pass an array into a function?
Tell me what are the encryption techniques in php?
What is a query in a database?
Why triggers are used in mysql?
What is empty () in php?
Which is the correct way to check if a session has already been started ?
Tell me how is it possible to propagate a session id?
What are the differences between mysqli_connect and mysqli_pconnect?
Tell me what is the meaning of a final class and a final method?
How can you upload a file using php?
Can you specify the "new line" character in single-quoted strings?
How do I see how many pages per session in google analytics?
When sessions ends?
How to terminate the execution of a script in PHP?
How do I find environment variables?