Is it possible to submit a form with a dedicated button?



Is it possible to submit a form with a dedicated button?..

Answer / Shamendra

Yes, it is possible to submit a form with a dedicated button in HTML by using JavaScript or by using the `name` attribute of the button and naming it 'submit'. Here's an example:

<form action='my_page.php' method='post'>
<input type='text' name='username' />
<input type='submit' name='submit' value='Submit Form' />
</form>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is http php?

1 Answers  


Is php used anymore?

1 Answers  


Is facebook still in php?

1 Answers  


Write down the code for saving an uploaded file in PHP.

1 Answers  


How can php and javascript interact?

1 Answers  


What’s the special meaning of __sleep and __wakeup?

1 Answers  


What are the differences between PHP 3 and PHP 4 and PHP 5?

2 Answers  


Is php still relevant 2019?

1 Answers  


Differentiate echo vs. Print statement.

1 Answers  


Explain me how to include a file to a php page?

1 Answers  


Explain what is the use of "echo" in php?

1 Answers  


Describe the importance of DABA BASE ABSTRACTION LAYERS in PHP and database connection?

1 Answers  


Categories