Question: In a
<form> element, can you have more than one action=" " attribute?
<form action="somepage_1.php, somepage_2.html" method="POST"> <section class="login"> <label for="user_name">Log In</label> <input type="text" name="user_name" id="user_name"> <br> <label for="pass-wd">Password</label> <input type="password" name="pass-wd" id="pass-wd"> </section> </form>
Why you may ask?
I was trying to process how the form would validate the end_user and then redirect him or her based on validating the login and password. (Note: This is just an example. The thought is for any situation that requires multiple actions to take place.)
If the ‘action’ attribute determines where the information is sent and the ‘name’ attribute passes value when sent. What happens if I need the data to be checked in a database like SQL through somepage_1.php. Then redirect him to said page somepage_2.html.
Or what if I would like to store that data else where while redirecting end_user to another page?
If I’m only able to provide one (action=" ") then how do I get to step two? Which is sending end_user to somepage_2.html if I already directed the form to got to somepage_1.php?