Passing $variable but won't display on page?
I'm doing a post with the following:
<input type="hidden" name="popcart" value="1">
It then redirects back to the same page and in the url it is passing the variable popcart=1 in the browser header successfully
I then call the following which fails
{if $popcart eq "1"}
<script language="JavaScript" src="/popup/minicart_adplib.js"></script>
<script language="JavaScript" src="/popup/minicart.js"></script>
<body onload="show('template01');return true;"></body>
{/if}
I even tried outputting the variable to see if it will post but the system doesn't seem to grab the variables that I assign. Is there something I need to do?
<h2>{$popcart}</h2> <== no output
__________________
Xcart 4.0.19
|