How can we submit a form without a submit button?
Answer Posted / bharat
we can click the image or text link.
for example:
<script>
function formsubmit()
{
document.form1.action="Page Name here you want to go that
page";
document.form1.submit();
}
</script>
<form name="form1" method="post">
<a href="#" onclick="formsubmit();">Click here</a>
</form>
| Is This Answer Correct ? | 196 Yes | 43 No |
Post New Answer View All Answers
What are advantages of .htaccess?
What is csrf cookie?
What is difference between mysql_connect and mysqli_connect?
How to set a page as a home page in a php based site?
How error handling is being handled by php?
Can you specify the "new line" character in single-quoted strings?
What is prepare in php?
Is php a dying language?
How to remove leading and trailing spaces from user input values?
What is the empty function?
What sized websites have you worked on in the past?
How do you remove whitespace from the beginning and end of a $string variable?
Does php need apache?
What is a definer in mysql?
Is laravel frontend or backend?