|
-
December 10th, 2009, 02:53 PM
#1
Simple If then Else Statement
I really need some help for a work project I'm doing.
It's been a long time since I wrote VB script on a .asp file.
I need to write something like this, but it's not working:
___________________________________________
<%
Dim ToEmail
IF frmOffice = "Projects"
Then ToEmail = "[email protected]"
If frmOffice = "Systems"
Then ToEmail = "[email protected]"
If frmOffice = "Developers"
Then ToEmail = "[email protected]"
END IF
%>
_______________________________
Can you please tell me how to write this?
I'm trying to say if the form's text box has "projects, systems, or developers" in it, then the application sends an automatic email to a specific email address, which is correlated to the text box content.
I'm not getting an error, so I don't think there is a lot wrong with my code above....Can you tell me?
thanks,
This has really been stumping me.....I know it's not that complicated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|