Jump to content

get.id_product on submit


Abh
 Share

Recommended Posts

Hello,
Is there a way to attach get.id_product on a submit button? I have this module that's made to work from a button which opens a form. But i need the form to be displayed all the time. The form is called from another .tpl

{l s='Cerere de oferta' mod='cereoferta'}



And i have to somehow call it when the main .tpl is shown, or integrate it in that .tpl :(. Cause right now the form shows on page, but has no functionality.

cereoferta-form.php looks like this:

<?php

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/cereoferta.php');

$cereoferta = new cereoferta();
echo $cereoferta->displayFrontForm();

include(dirname(__FILE__).'/../../footer.php');

?>

Share this post


Link to post
Share on other sites

Nevermind, insted of

form action="$request_uri"

i just put

form action="{$this_path}cereoferta-form.php?id_product={$smarty.get.id_product}"

and it works, only that when it errors and after submit it takes me out of the product's page, but i'll solve that somehow.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More