How can we submit a form without a submit buttom?

Answer Posted / abhishek anand

Use image element instead submit button
<input type="img" src="img_path/img_name.src">
give the action page name as action attribute in form
element like
<form name="myform' action="myaction.php">
The Image element will work very similar as submit button.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

522


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

536


What is filter_var?

529


What is the difference between get & post ?

527


Which function can be used to delete a file?

576






Define anonymous classes in php7?

550


What does odbc do in context with php?

558


What are new features in php 7?

542


What is difference between strstr() and stristr()?

517


How to avoid the undefined index error?

500


How a constant is defined in a php script?

554


Will react hooks replace redux?

500


Are php session secure?

516


Tell me what is the difference between ereg_replace() and eregi_replace()?

535


Where to put php files in apache server?

497