View Single Post
  #1  
Old 06-14-2004, 11:23 AM
 
xcart_uf1 xcart_uf1 is offline
 

Newbie
  
Join Date: Jun 2004
Posts: 2
 

Default http post (standard html hidden variables)

Having spent several hours trying to figure this out I would like to ask for help .... I hope the information provided isn't overkill!

It appears that XCART intercepts the standard HTML variable passing and prevents it from working normally.
Is this assumption correct and if so is there a work around?

Reason for my assumption:

Added text field to product.tpl to allow user to change value.
<input type="text" name="extra0" value="43" size=5>

The HTML code is within the <form> </form> parameters.

Modified the cart.php by adding the following code:
x_session_register("test0");
$tt0=$_POST['extra0'];
$smarty->assign("test0", $tt0);

Modified the cart.tpl file by adding the following code:
{$test0}

The value on the resulting web page is blank.

I modifed the code in cart.php to the following:
$tt0=99;

And the value 99 displays on the resulting web page correctly.

I tried the HTML variable passing code in another application (not xcart) and it works fine.

Your help is greatly appreciated. Thanks!
Reply With Quote