When I validate my login page before logging in with credentials, the page is validates perfectly. But when I validate after starting php sessions, it gives error – error being conflict between inline and block level element. Session seems to have inserted hidden input element after form tag like shown below:
<form method="post" action ="log.php">
<input type="hidden" name="PHPSESSID" value="l96qs5ksgpkbpkr4sblilhqku6" />
How can I avoid this? Can we control where this hidden input element is inserted?
Try this in .htaccess:
or in PHP: