Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Different 'types' of links

Quote Reply
Different 'types' of links
I've tried searching the archives, but no luck! So here goes...

What I want to create is a 'tiered' level of links e.g. Basic, Bronze, Silver, Gold etc. where each 'tier' includes additional fields (such as contact details, logos etc. dependent upon the level subscribed to).

I understand that I can create different forms to capture the relevant data, but I am unsure as to how to call the form from within add.html, dependent upon the selection of service the subscriber requires (e.g. if the user selects 'Basic' on another page then add.html calls the 'Basic Fields' form).

Alternatively, can I just copy add.cgi four times and just change the reference to add.html to addbasic.html, addbronze.html etc., or will this just screw things up?

Any advice would be much appreciated! It would be nice to get it out of the way before the end of the festive season.

Merry Xmas to one and all.

Valiant (newbie!)
Quote Reply
Re: [valiant] Different 'types' of links In reply to
Hi,

I would modify your links so it calls:

add.cgi?service=GOLD
add.cgi?service=SILVER
...

Then in your add.html template:

<%if service eq 'GOLD'%>
extra forms here
<%elsif service eq 'SILVER'%>
extra forms here
<%elsif service eq 'BRONZE'%>
extra forms here
<%else%>
basic forms here
<%endif%>

Hope that helps,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Different 'types' of links In reply to
Thanks Alex - that's done the job! Much appreciated Smile