I’ve seen <form> opening tags that look like this:
<form action="<?= $_SERVER['REQUEST_URI'] ?>">
Does the action attribute here make any sense?
Wouldn’t the form behave the same way without it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should always include the
actionattribute in your form tag if you want a good valid markup (which you should). It is a required attribute (though most browsers will work around it if you don’t and assumeaction="").Using:
…will work and just use the current page as the action page.
http://www.w3schools.com/tags/tag_form.asp
Hope this helps.