Forum Moderators: open
Cheers
Googly
I definitely have to invest in an ASP book ASAP!
Here's some sample HTML.
<form name="contact" method="post" action="contactus.asp"> <select name="recipient" class="slideshowtext" size="1">
<option value="bob">Bob Hartleberry - Managing Director</option>
<option value="bert">Bertie Palmer - Finance Director</option></select></form>
Thanks
Googly
<%
Dim strRecipient, strEmailTo
strRecipient = request.form("recipient")
Select Case strRecipient
Case "bob"
strEmailTo = "bob@domain.com"
Case "bert"
strEmailTo = "bert@domain.com"
...
Case Else
code here for what happend if nobody was selected or a default email address may be
End Select
And your email sender code with
emailVariableName.TO = strEmail
%>
Leo
If it can then I would need to put the email address in the actual ASP-VBscript code?
Or you could load the listbox via javascript in the page onload event. Easy to do with plenty of samples on the web. I think that should thwart the bots.
Thats a shame :( Silly americans not knowing what a googly is :P Not that I'd have a clue about baseball either :P
You'll want to know that most baseball players spend a good deal of time 'shagging flies'. In fact the coach insists upon it!