Jump to content

[solved] I need help loading a php script on my product page


Abh

Recommended Posts

I integrated some 'ask info on product' module on the product page (placed it on extra right hook), and now i'm trying to put capcha in the form. Problem is, the php that generates the capcha isn't working when i'm on http://5com.ro/product.php?id_product=255 but the script is valid since it works on the 'ask info' module page http://5com.ro/modules/cereoferta/cereoferta-form.php?id_product=255 .

In my module .tpl i have this:

            


<input type="text" name="staf_skey" style="width: 50px;" maxlength="5" />
<input type="hidden" name="staf_rnd" value="{$staf_rnd}">
<style="font-size:11px"><strong>{l s='Retype the 5 digit key' mod='cereoferta'}.



But $staf_rnd and $staf_codelen don't get sent to the server when i'm not in /modules, so it doesn't create any image. Where should i register those variables?

Edit: I had to assign them in product.php

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...