Gossamer Forum
Home : Products : DBMan : Customization :

generate links from radio buttons - possible?

Quote Reply
generate links from radio buttons - possible?
in my database i have a field called 'PCode', which is a textfield, and another one called 'Skript', which is a 'Yes or No' radio button field. if i choose 'Yes', the output for the 'Skripts' field should generate a link with the 'PCode' data in it, - something like
Code:
<A HREF="http://link/to/PCode.html">click here</A>
if the radio button for 'Skripts' is set to 'No', it should output nothing or just plain text, like 'nothing yet'.

i'm a newbie with perl, so any help from you guys would be very much appreciated!

Quote Reply
Re: generate links from radio buttons - possible? In reply to
Try this:

if ($rec{'Skript'} eq "Yes") {
print qq| <A HREF="$rec{'Pcode'}">click here</A> |;
}
else {
print qq| nothing yet |;
}

Hope this helps


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: generate links from radio buttons - possible? In reply to
woohoo! thanks a lot! works perfect Laugh