[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Need help with perl P L E A S E
****** message to minivend-users from "Stan Crump" <stanc@amintech.com> ******
I know this will show how little I know about using perl with MV, but I'm
desperate for some help...
I thought that:
-- snip --
<select name=[quantity-name] value=[item-quantity]>
[perl interpolate=1]
$myvar = 1;
while ( $myvar <= 5 ) {
print "<option value=$myvar [if explicit][condition] [item-quantity] ==
$myvar;[/condition] selected [/if]> $myvar\n";
$myvar = ( $myvar + 1 );
}
[/perl]
</select>
-- snip --
would output HTML:
<select name=quantity0 value=1>
<option value=1 [if explicit][condition][item-quantity] == 1;[/condition]
selected [/if]>1
... etc ...
<option value=5 [if explicit][condition][item-quantity] == 5;[/condition]
selected [/if]>5
</select>
instead, the HTML output is:
<select name=quantity0 value=1>
</select>
Can any one please help me get back on track with this?
Thanks!
Stan Crump
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list