By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

VB6 script Dynamic Combobox in webpage

P: 1

I have got a combobox which directs to another page on select and when the submit button is clicked.
I am trying to change it into a dynamic combobox which redirects you to another page on select. * Without clicking another button *

<% isFirsttime = true%>

<form name="form1" method="post" ID="Form1" action="">
<SELECT id="matters" name="matters" onchange="<%directsite()%>">
<option selected value="">select</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<input type=submit id="submit1" name="submit1" value="Get Report">

<% Function directsite()
if isFirsttime = false then
response.redirect " http:\\getting matters" & " & Request.Form"matters"
end if

the isFirsttime variable is to prevent the page from redirecting when first opened.

Can some one look at whats wrong with my code or if there's any better ways to do it ?
Jan 17 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.