More help with eruby


#1

Hi list
I really hate to ask for help and it seems that the simplest things are
stumping me :frowning:

I’m trying to create a dynamic menu where a var is passed to expose the
next section based on the link used like my example below. My question
is what do I use to capture the y variable?

<%
year = ???
if year == 2006
printf “

  • <a href=”/2006/?s=help">Help
  • <a href=
    “/2006/?s=upload”>Upload
  • <a href="?/2006/s=download
    “>Download
  • elsif year == 2007
    printf “

  • <a href=”/2007/?s=help">Help
  • <a href=
    “/2007/?s=upload”>Upload
  • <a href="/2007/?s=download
    “>Download

  • end
    %>

    Thanks in advance for any help you can provide.

    Peter