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
Which function would you use to insert a record into a database in php?
How to get the position of the character in a string in php?
What are the php variables?
Is salary a ratio or interval?
What is rtrim php?
What are the main error types in php?
How do you end a session in php?
What is difference between echo and print in php?
How to send email using php script?
Does jwt protect against csrf?
What is the difference between file_get_contents() and file_put_contents() in php?
What is php key?
What's the difference between using mysql_ functions and pdo?
How to get elements in reverse order of an array in php?
Will react hooks replace redux?