0

The ex-programmer wrote this code: action="?". I couldn't find any PHP script with it. Can anyone tell me what does the form call when submit? I guess it should be the PHP_SELF, but I am not sure.

<form action="?" method="POST" id="pa_form" novalidate="novalidate">
another
  • 3,440
  • 4
  • 27
  • 34

2 Answers2

4

I believe that will cause the browser to send the form request to the current URL, but with an empty querystring.

IE: If you are currently on http://example.com/foo?bar=1 - the target form request will go to the URL "http://example.com/foo?"

Eugene
  • 2,946
  • 2
  • 26
  • 30
1

I believe it's a self-reference. If it's in the same php script, it just means "self". Typically there are parameters after the question mark (?id=5), however in this case there are none.

Kermit
  • 33,827
  • 13
  • 85
  • 121