//-----10% Off Coupon-----
if (coupon=="N110"){
form.PRICE.value=-(moneyFormat(fTotal * .10)-1);
form.ID_NUM.value="N110";
form.NAME.value=" Craft Month Promo 10% Off";
location.href=location.href;
return true;
}
I want to replace the .10 with an external peice of data, so users can change the amount with having to open the script. Sorta like those early marquees' where the marquee text was inserted from a text file.
I haven't tried it yet, need to figure out how to get "disc" value into .js from the external file.
Same as with this: I need to replace "name" in script below with data from a perl script result.
"../../cgi-bin/BCssi.cgi?MealDate=TODAY" returns "YES" or "NO" when used direct.
Bookmarks