/    Sign up×
Community /Pin to ProfileBookmark

drop down menu

Hi,

Is there any simple to understand sample code to do a drop-down menu?
I look through the net but found that their examples are difficult to understand

Thanks

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Beach_BumDec 21.2002 — drop down menu - and - simple >> a contradiction in terms.
Copy linkTweet thisAlerts:
@jux82authorDec 21.2002 — ok, then what do you have? ?
Copy linkTweet thisAlerts:
@CharlesDec 21.2002 — [font=georgia]And let us not forget that they simply do not work for a great number of users. Don't even get me started on those dynamic Javascript-based menu systems. They make you look cool like smoking makes you look cool. Use real links.

[i]Mark Pilgrim (http://diveintoaccessibility.org/day_13_using_real_links.html)[/i][/quote]
[/font]
Copy linkTweet thisAlerts:
@robyDec 21.2002 — hi,




<html dir="rtl">

<head>

</head>

<%@language=VBScript CodePage="1256"%>

<!-- #include file="adovbs.inc" -->



<%

dim db


Dim DB_CONNECTION

DB_CONNECTION = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("./your DB") & ";"


Set db = Server.CreateObject("ADODB.Connection")

db.open DB_CONNECTION

%>


<%



num= request.form("num")

flag= request.form("flag")



%>


<%

Function AddF()

dim addsql

addSQL= " insert into yourtable (num,flag) values ('"&num&"','"&flag&"')"

db.execute(addSQL)

End Function

%>


<body>

<%

Dim objRecordset
dim sqls


%>







<form method="POST" action="yourpage.asp" onSubmit="">

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">

<tr>

<td width="25%">&nbsp;</td>

<td width="25%" align="left">

&nbsp;</td>

<td width="25%" align="left">


&nbsp;</td>

<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%" align="left">
&nbsp;</td>
<td width="25%" align="left">





&nbsp;</td>

<td width="25%">&nbsp;</td>

</tr>

<tr>

<td width="25%">&nbsp;</td>

<td width="25%" align="left">

&nbsp;</td>

<td width="25%" align="left">&nbsp;</td>

<td width="25%">&nbsp;</td>

</tr>

<tr>

<td width="25%">&nbsp;</td>

<td width="25%" align="left">number</td>

<td width="25%" align="left"> <select size="1" name="num">

<option selected>1</option>

<option>2</option>

<option>3</option>

<option>4</option>



</select></td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%" align="left">any thing</td>
<td width="25%" align="left"> <select size="1" name="flag">
<option selected>yes</option>
<option>no</option>


</select></td>
</table>

<p align="center"><input type="submit" value="submit" name="B1"></p>

</form>


<%


AddF()

response.redirect "result.asp"

End If



%>

<%

db.close

set db=nothing

%>

</body>

</html>




roby
×

Success!

Help @jux82 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...