[ic] Passing Arguments in URL
Himem Inc
interchange at himem.net
Tue Mar 16 16:50:40 EST 2004
I am trying to basically have a button that I can click, and depending
on a passed piece of information, show an option. The basic idea is
having a button on my homepage that says "Click here to ...", and all my
other pages have this button as well, however if the user clicks this
button while on my homepage, it will give them an extra option (such as
a bonus drop down box or such).
I currently have this code:
somepage.html
<a href="[area contact_us show]">click here</a>
contact_us.html
[cgi mv_arg]
[if explicit]
[condition]
$show = '[cgi mv_arg]';
return 1 if $show =~ /show/;
return 0;
[/condition]
one
[else]
two
[/else]
[/if]
The result is:
somepage.html creates a link:
mysite/cgi-bin/site/contact_us.html?mv_arg=show
When I click this link, contact_us.html says;
show two
The 'show' is being produced by the [cgi mv_arg] and the two is from the
if failing.
If anyone has any suggestions please let me know.
Thanks.
More information about the interchange-users
mailing list