Tuesday, 15 March 2011

php - Submitting the form to itself - Server self or Script name? -



php - Submitting the form to itself - Server self or Script name? -

i want submit form itself. give filename straight i.e hard code it.

but maintain changing filename often. decided utilize function php.

on searching, found out 2 functions:

$_server[script_name] , $_server[php_self] . both homecoming same values.

my question, difference between 2 & of them improve use?

thanks in advance!!

p.s: searched such question pretty well. no results turned me. sorry if has been asked !

don't utilize either. if anything, should utilize $_server['request_uri'] since include query string parameters, unnecessary. form empty action submit per rfc 3986 standards.

php forms

No comments:

Post a Comment