Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:30:49+00:00 2026-05-26T20:30:49+00:00

I was just validating some of my html5 pages on W3C with forms (PHP)

  • 0

I was just validating some of my html5 pages on W3C with forms (PHP) on them and I get the following validation error:

Error: Bad value for attribute action on element form: Must be non-empty.

I thought that when the form submits to itself, it is good practice to leave the action attribute empty. Is this not the case? How can I fix this?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:30:50+00:00Added an answer on May 26, 2026 at 8:30 pm

    While browsers currently support the empty action since the spec says it’s needed browsers in the future may not support it. In my opinion this is unlikely but you never know.

    The reason I would add the action attribute is so if there is JavaScript somewhere that is actually posting the form the next developer in line is certain that this is were the form posts to and doesn’t have to look though the relevant JavaScript files to see if this is intended or left out on mistake.

    It can be fixed my putting the current page in the action attribute.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way to get the ASP.NET validation summary control to just display
I recently ran some of my ASP pages through HTML Tidy validation and found
I've just run across an annoying feature of the Client-Side Validation that I'm wondering
Should you do validation on the server side, or is it ok to just
I'm just getting started with ASP.NET MVC 2, and playing around with Validation. Let's
MVC isn't generating the client-side validation rules for my viewmodel. The HTML just contains
I have added some javascript in html page for input validation.same page is working
I built a basic form with ajax validation and page redirection with PHP and
Trying to do some jQuery validation (without the plugin - please no answers like
Within my web application I am using some custom validation for my form fields.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.