Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying hyperlink (or not) depending on value

Status
Not open for further replies.
May 9, 2000
446
GB
Simple one i'm sure, if a value is "y" then i want a hyperlink to be shown if the value is "n" I don't want it to be shown but i do want the "n" value shown still.... i guess i use an if statement but can't get it to work!
 
<html>
<head>
</head>
<body>

<%
IF x = y THEN
%>
<font><a href=&quot;somepage.asp&quot;>Y Value</a></font>
<%
ELSE
%>
<font>N Value</font>
<%
END IF
%>

</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top