Kristoff Posted August 18, 2011 Share Posted August 18, 2011 Hello, I have a little problem with form on the index page. PrestaShop 1.4.3 index.tpl {php} $vat = $_POST['valE']; echo $vat; {/php} <form method="POST" action="index.php"> <h1>Title</h1> <p>Question?</p> <input type="text" name="valE" onChange="this.form.submit(); return true;"/><br> </form> {$HOOK_HOME} This example run only if i use GET method, no POST. Why ? I try also IndexController.php override, but situation is the same. Do anyone have any idea ? Thanks Link to comment Share on other sites More sharing options...
Kristoff Posted August 18, 2011 Author Share Posted August 18, 2011 Solution: - should use Tools::getValue('value') instead of $_POST['value'] - action="index.php" change to action="{$base_url}" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now