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


Please Help Members By Posting Answers For Below Questions

Write a program to show the joining of two strings in php?

523


How do I expire a php session after 30 minutes?

534


What is meant by urlencode and urldecode?

602


Can we override magic methods in php?

534


Is php faster than javascript?

505






Code to upload a file in PHP?

553


How many ways to include array elements in double-quoted strings using php?

556


Is array empty php?

496


What is the difference between null and empty?

570


How can you compare objects in php?

498


Applications written to provide a GUI shell for Unix and Linux are called

571


What is the use of magic function in php?

504


What is the purpose of the '.frm' file extension? What do thes file contain?

506


How do I escape data before storing it into the database?

528


How do you end a session in php?

552