Jump to content

form on the index page


Kristoff

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...