Print Page | Close Window

HELP...asp drop down list help

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7831
Printed Date: 01 April 2026 at 12:59am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: HELP...asp drop down list help
Posted By: asp what that??
Subject: HELP...asp drop down list help
Date Posted: 03 December 2003 at 11:36am

when the moderator is selected i would like it to redirect to there Profile if you could help me out thanks..i wrote this but cant get any farther..please do help me

'Initlaise the Moderators List varible if there are records returned for the forum

Response.Write "<form> "

Response.Write "<td bgcolor=""0E,36,52"" width ='100%' align=""left""> "

Response.Write vbCrLf & " &nbsp;&nbsp;&nbsp;&nbsp; <select onChange="""" name=""asdfasdfagasdg"">"

Response.Write vbCrLf & " <option value="""""

Response.Write " selected"

Response.Write "></option>"

'Loop round to build a list of moderators, if there are any

Do While NOT rsCommon.EOF

'Move to the next record

strmoderator = rsCommon("Username")

rsCommon.MoveNext

Response.Write vbCrLf & " &nbsp;&nbsp; <option value="""""

Response.Write " selected"

Response.Write "> " & strmoderator & " </option>"

Loop

Response.Write vbCrLf & " </select>&nbsp;&nbsp;&nbsp;&nbsp;</ span></td>"

Response.Write("</td>")

'Close the recordset

Response.Write "</form> "

rsCommon.Close

end if




Replies:
Posted By: michael
Date Posted: 03 December 2003 at 11:44am
Well, what is it doing? Is it not displaying anything, is it displaying all users???? Some more info please.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: asp what that??
Date Posted: 03 December 2003 at 11:49am
oh...all is working fine...i would like it to open the members profile when you select the user form the drop down list...TY


Posted By: MorningZ
Date Posted: 03 December 2003 at 2:20pm

<form name="form1" action="member.asp" method="get">
<select onChange="document.forms['form1'].submit()" name="Username">
    <option value="">- Select Moderator -</option>
    <%
    'Loop round to build a list of moderators, if there are any
    Do While NOT rsCommon.EOF
        Response.Write("<option value=""" & rsCommon("Username"))
        Response.Write(""">" & rsCommon("Username") & "</option>" & vbCrlf)
        rsCommon.MoveNext
    Loop
    rsCommon.Close()
    %>
</select>
</form>

Will, upon changing the value of the dropdown, goto "members.asp?Username=SelectedUsername"



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: asp what that??
Date Posted: 03 December 2003 at 3:02pm

documents.forms.form1 is null or is not an object

Response.Write "<td bgcolor=""0E,36,52"" width ='100%' align=""left""> "

%> <form name="form1" action="pop_up_profile.asp" method="get">

<select onChange="document.forms['form1'].submit()" name="Username">

<option value="">- Select Moderator -</option>

<%

'Loop round to build a list of moderators, if there are any

Do While NOT rsCommon.EOF

Response.Write("<option value=""" & rsCommon("Author_ID"))

Response.Write(""">" & rsCommon("Username") & "</option>" & vbCrlf)

rsCommon.MoveNext

Loop

rsCommon.Close()

%>

</select>

</form>



Posted By: MorningZ
Date Posted: 03 December 2003 at 3:19pm

ya know.. i am not going to sit here and do you work for you

i didn't post that code with the intention of "take it and you're done"....

i just tried to lead you down the path...



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: asp what that??
Date Posted: 03 December 2003 at 3:25pm

can you just tell me what the error means....

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net