Jump to content

Submit Form To Itself?


Rough Divide
 Share

Recommended Posts

What is the most practical and portable-friendly way of posting a form to itself? Originally I was just using:

<form action=""  method="post">

Though recently when I validated my code, I got this error from W3: " Bad value for attribute action on element form: Must be non-empty." I would guess using <?php echo $_SERVER['PHP_SELF'];?> , but I've read that it isn't safe to use for some reason or another, especially in forms. Can anybody elaborate on that too?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...