0

I want to ask - is the form 'action' attribute necessary for php interpreter? It's first question. :) I think in most cases i can found all needed data in array $_POST[]

There are few varians of using i have found :

action= < ?php echo $_SERVER['SCRIPT_NAME']; ?>"
action= < ?php $_SERVER['PHP_SELF']; ?>"
action= < ?php $_SERVER['REQUEST_URI']?>"
action="FileName.php"
action=""
no 'action' attribute, just 'method' and some other)
  1. What you think, usage of the first 3 rows (with superglobals) is safely? My English is not so good sometimes :)
Marc B
  • 356,200
  • 43
  • 426
  • 500
sameuser
  • 13
  • 1
  • 8

0 Answers0