embedded html in visual basic if - then - TechRepublic
General discussion
September 29, 2000 at 04:18 AM
jayhouck

embedded html in visual basic if – then

by jayhouck . Updated 25 years, 8 months ago

Hey everyone,

I am working on an asp with lots of problems. Here’s a big one… I want to limit orders from outside the US. The customer has chosen a country from a drop down menu containing USA and Other.

<% if country=Other then %>
Your order could not be completed. We do not ship outside the continental United States at this time.

<% else %>

The problem is that regardless of the country, the statement prints. It is like the statement is not part of the if – then. I have tried moving the %> to include everything, that doesn’t work… Let me know any thoughts. I have been thrown into the position of fixing someone else’s site (they quit) and I am overwhelmed with the switching between html, asp, visual basic, java,etc. Thanks.

This discussion is locked

All Comments