I have a self calling PHP form in a Joomla article. This article is then linked with a 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" the PHP form was working fine. i.e "Use URL rewriting" was set to NO.
After setting the "Use URL rewriting" to Yes the PHP self calling form doesnt submit. When the submit button is pressed, the browser throws the user to the homepage.
I want to use "Use URL rewriting"->Yes as it makes the website SEO friendly while also using the PHP self calling form. Is there a way to do both ?
Thank you in advance.