Link to home
Start Free TrialLog in
Avatar of Robert Francis
Robert Francis

asked on

Creating a hyperlink with a response.write

I have the following code in a table that works fine:

<td width="60"><b><a href="purchase_details.asp?id=<%Response.Write rs3("m_id")%>">View Details</a></b></td>

Open in new window


I want to incorporate into that line an if statement that basically says

if Response.Write rs3("m_status") = "purchased" then do the above code else I want nothing

Open in new window


Thanks in advance for your help
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robert Francis
Robert Francis

ASKER

Thanks. Works great.