Using if statements to display images
I'm new to all of this and I'm trying to pick up as much as I can as I go along.
I am creating a form that will allow users to design a product online by their selections. So my apologies in advance as I dont think this will be the last post regarding this form :o
I have got the basics of the form on the first page sorted, on the second page I have a column to the right that will show the users progress. It lists the name the user enterered in a text field, and i have done this by using [CODE] <%= Request.QueryString("room1name") %> [CODE]
Next to the room name i want to add an image dependant on the selection the user made on the previous page. I have managed to get the form to work with text but not images.
The code i used for this is
[CODE] <% If Request.QueryString("room1protect")=1 Then response.write("Protected") Else response.write("unprotected")
For the part where the response is "protected" I want my image /images/tick.gif to be diaplayed and for "unprotected" I want my image /images/cross.gif to be displayed.
I have tried to insert the image where the text is but it causes an error and wont display the page at all.
Can anyone help me as to how I will get this to work.
Thanks in advance.