Self calling PHP form doesnt work after "Use URL rewriting" is set to Yes in Joomla 2.5 -
i have self calling php form in joomla article. article linked menu item.
<form class="form-inline" name="test" action="<?php echo htmlentities($_server['php_self']); ?>" onsubmit="return validateform()" method="post" >
before using "use url rewriting" php form working fine. i.e "use url rewriting" set no.
after setting "use url rewriting" yes php self calling form doesnt submit. when submit button pressed, browser throws user homepage.
i want use "use url rewriting"->yes makes website seo friendly while using php self calling form. there way both ?
thank in advance.
i able using $_server['script_url']
, possible other $_server array elements trick too, such $_server['request_uri']
, $_server['redirect_url']
, $_server['redirect_script_url']
.
if not help, add code
var_dump($_server);
to show array elements , looking right ones.
Comments
Post a Comment