PHP - Explain how to submit form without a submit button.

Explain how to submit form without a submit button.

A form data can be posted or submitted without the button in the following ways:

1. On OnClick event of a label in the form, a JavaScript function can be called to submit the form.
Example:
document.form_name.submit()

2. Using a Hyperlink: On clicking the link, JavaScript function can be called.
Example:
<a.href=” javascript:document.MyForm.submit();">

Explain how to submit form without a submit button in PHP.

A form can be submitted in various ways without using submit button.

Submitting a form by clicking a link
Submitting a form by selecting an option from drop down box with the invocation of onChange event
Using java script : document.form.submit();
Using header(“location:page.php”);
PHP - What are the functions for IMAP?
PHP - IMAP is used for communicate with mail servers. It has a number of functions....
PHP Script - How can we increase the execution time of a php script?
PHP Script - Default time allowed for the PHP scripts to execute is 30s defined in the php.ini file......
PHP - What is Type juggle in php?
PHP - Type Juggling means dealing with a variable type. In PHP a variables type.......
Post your comment
Discussion Board
regarding to form submissin
I wanna post a form field values without a submit button and click on link.......
Ravi Prakash Awasthi 12-13-2014