Jump to content

Need help rewriting Action attribute in Form tag


doubledee

Recommended Posts

It has been brought to my attention that $_SERVER['PHP_SELF']; can be easily hacked.

 

In this code...

<form id="login" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

 

 

Do I even need anything in the Action attribute if I am redirecting the form to itself?!

 

Please advise...

 

 

 

Debbie

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.