Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - HELP...asp drop down list  help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HELP...asp drop down list help

 Post Reply Post Reply
Author
asp what that?? View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote asp what that?? Quote  Post ReplyReply Direct Link To This Post Topic: HELP...asp drop down list help
    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

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
asp what that?? View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote asp what that?? Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
asp what that?? View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote asp what that?? Quote  Post ReplyReply Direct Link To This Post 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>

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
asp what that?? View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote asp what that?? Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2003 at 3:25pm

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

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.