<form action="/action_page.php"> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

<form action="/action_page.php">

what ia the value of action what does it do??

12th Aug 2018, 3:06 PM
Sina
Sina - avatar
1 Answer
+ 2
It's adress to a script that will process data submitted via the form. Just like onsubmit specifies JavaScript function that is invoked on form submit. Action is used when you use php, but you can also use it just to redirect a user to another page once the form is submited.
12th Aug 2018, 3:35 PM
Jan Štěch
Jan Štěch - avatar