How can we submit a form without a submit button?
Answer Posted / hitesh shrimali
we can submit form by submit(); function of javascript.
for example:
<form name='xyz' method='post'>
<select name='select' onchange="this.form.submit();">
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>
</select>
</form>
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How to strip whitespace (or other characters) from the beginning and end of a string?
What is the difference between substr() and strstr()?
What are some of the advanced features of php?
What is array filter in php?
How to open a file for reading?
Write a program in php to print a table of a number?
How to find current date and time?
Which framework is best for php?
List some features of php that are deprecated in php7?
What is the difference between html and php?
What is varchar mysql?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?
what is CURL?
what is PDO?
Can we extend multiple classes in php?