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


Please Help Members By Posting Answers For Below Questions

Do you know what's the difference between __sleep and __wakeup?

534


What is the difference between htmlentities() and htmlspecialchars()?

545


Is salary fixed or variable cost?

538


What is api laravel?

534


How to uploaded files to a table?

566






What are the file upload settings in configuration file?

541


Does wordpress run on php 7?

519


What is helper function?

512


What is the difference between a session and cookies?

493


Why json is used in php?

548


What is htmlentities function in php?

514


Can php run without server?

564


Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?

577


Can you use php and javascript together?

562


What is "echo" in php?

535