Hide text and entry fields under certain conditions

R

RColes

I wish to use the same page for several tasks. When I go to the page, how
can I hide text and fields under certain conditions (i.e., hide if
session("switch") = 1 and show if session("switch") <> 1? There are times
that some instructions and entry fields are not needed. This is determined
by the page preceeding this one (i.e. under conditions I know about before i
get to that page).

For security sake, we will provide you with a folder to hold any files you
create from our data and programs you wish to write.
Enter Folder Name in text box  (Less than 11 characters)
 
J

Jon Spivey

Hi,
I'm assuming you're using ASP? If so you can show and hide based on a
session var like this
<%if session("switch") = 1%>
<p>show this if switch =1 </p>
<%else%>
<p>show this if switch <> 1 </p>
<%end if%>

Cheers,
Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top