Avatar billede sigsten Nybegynder
23. oktober 2002 - 12:43 Der er 14 kommentarer og
2 løsninger

Spørgeskeam + database!!!

Ok...jeg ved INTET om det her, så måske spørger jeg dumt!!! (spørgsmålet er flyttet hertil fra Databaser -access!!!)

Jeg skal bruge/lave et online spørgeskema hvor jeg gerne vil have de data/svar der indtastes ind i en Access database!
Er det en kompliceret sag eller er det noget der er rimelig ligetil ...jeg tænker i forhold til at få nogen her til at lave det for point...!!???
Det kunne jo være at nogle havde noget lignende liggende så det ikke skal laves fra start...!

Ja ja...som sagt ved jeg ikke en dyt om det her...hvor svært det er ...hvor lang tid det tager osv. så måske griner I af mit spørgsmål...
Men hey, hvis man ikke spør' får man intet svar!!

Jeg kan selv lave selve spørgeskemaet i HTML...!

Hilsen
Signe
Avatar billede kovalt Nybegynder
23. oktober 2002 - 12:52 #1
Det er såmænd ikke ret svært - hvor mange spørgsmål er der?
Avatar billede puppetmaster Nybegynder
23. oktober 2002 - 12:57 #2
Du har helt ret, Signe, bare spørg løs.......og hvis du vil have en eller anden til at lave det hele for dig, i en installationsklar løsning, er 150-200 point passende, så hvad det angår er du ikke galt på den....(jeg kan dog ikke hjælpe dig, men det ser ud til at kovalt kunne ligge inde med en løsning)
Avatar billede sigsten Nybegynder
23. oktober 2002 - 14:15 #3
Kovalt:
Det drejer sig nok om ca. 10 spørgsmål (+/-)
Er det evt. noget du vil lave for de 200 point? Jeg har endnu ikke lavet HTML siden....

Puppetmaster: Tak :-)
Avatar billede medions Nybegynder
24. oktober 2002 - 00:32 #4
Hmm hvis nu vi siger du har disse spørgsmål:

<html>
<head>
<title>index</title>

<meta name="generator" content="Created Using Yahoo! PageBuilder 2.61.74">
</head>
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000" text="#000000"
>

<table border=0 cellspacing=0 cellpadding=0 width=641>
<tr valign="top" align="left">
    <td></td>
</tr>
<tr valign="top">
    <td colspan=55 height=19></td>
</tr>
<tr valign="top">
    <td colspan=11 height=41></td>
    <td colspan=9 rowspan=1 width=138><font size="+3"><span style="font-size:36">Test 2</span></font></td>
    <td colspan=35 height=41></td>
</tr>
<tr valign="top">
    <td colspan=55 height=11></td>
</tr>
<tr valign="top">
    <td colspan=17 height=13></td>
<form method=post action="save.asp">
    <td colspan=21 rowspan=2 width=242><INPUT type=TEXT size=29 maxlength=50 name="Navn" value="" ></td>
    <td colspan=17 height=13></td>
</tr>
<tr valign="top">
    <td colspan=10 height=9></td>
    <td colspan=4 rowspan=3 width=94><span style="font-size:14">Navn</span></td>
    <td colspan=3 height=9></td>
    <td colspan=17 height=9></td>
</tr>
<tr valign="top">
    <td colspan=10 height=7></td>
    <td colspan=41 height=7></td>
</tr>
<tr valign="top">
    <td colspan=10 height=3></td>
    <td colspan=3 height=3></td>
    <td colspan=4 rowspan=3 width=106><INPUT type=TEXT size=12 maxlength=20 name="CPR" value="" ></td>
    <td colspan=34 height=3></td>
</tr>
<tr valign="top">
    <td colspan=17 height=10></td>
    <td colspan=34 height=10></td>
</tr>
<tr valign="top">
    <td colspan=9 height=9></td>
    <td colspan=4 rowspan=3 width=94><span style="font-size:14">CPR</span></td>
    <td colspan=4 height=9></td>
    <td colspan=34 height=9></td>
</tr>
<tr valign="top">
    <td colspan=9 height=7></td>
    <td colspan=42 height=7></td>
</tr>
<tr valign="top">
    <td colspan=9 height=3></td>
    <td colspan=5 height=3></td>
    <td colspan=21 rowspan=3 width=242><INPUT type=TEXT size=29 maxlength=50 name="Kontaktlærer" value="" ></td>
    <td colspan=16 height=3></td>
</tr>
<tr valign="top">
    <td colspan=18 height=11></td>
    <td colspan=16 height=11></td>
</tr>
<tr valign="top">
    <td colspan=10 height=8></td>
    <td colspan=4 rowspan=3 width=94><span style="font-size:14">Kontaktlærer</span></td>
    <td colspan=4 height=8></td>
    <td colspan=16 height=8></td>
</tr>
<tr valign="top">
    <td colspan=10 height=8></td>
    <td colspan=41 height=8></td>
</tr>
<tr valign="top">
    <td colspan=10 height=3></td>
    <td colspan=5 height=3></td>
    <td colspan=21 rowspan=3 width=242><INPUT type=TEXT size=29 maxlength=50 name="Uddannelse" value="" ></td>
    <td colspan=15 height=3></td>
</tr>
<tr valign="top">
    <td colspan=19 height=11></td>
    <td colspan=15 height=11></td>
</tr>
<tr valign="top">
    <td colspan=11 height=8></td>
    <td colspan=4 rowspan=3 width=94><span style="font-size:14">Uddannelse</span></td>
    <td colspan=4 height=8></td>
    <td colspan=15 height=8></td>
</tr>
<tr valign="top">
    <td colspan=11 height=8></td>
    <td colspan=40 height=8></td>
</tr>
<tr valign="top">
    <td colspan=11 height=3></td>
    <td colspan=4 height=3></td>
    <td colspan=21 rowspan=3 width=242><INPUT type=TEXT size=29 maxlength=50 name="E-mail" value="" ></td>
    <td colspan=15 height=3></td>
</tr>
<tr valign="top">
    <td colspan=19 height=11></td>
    <td colspan=15 height=11></td>
</tr>
<tr valign="top">
    <td colspan=12 height=8></td>
    <td colspan=4 rowspan=2 width=94><span style="font-size:14">E-mail</span></td>
    <td colspan=3 height=8></td>
    <td colspan=15 height=8></td>
</tr>
<tr valign="top">
    <td colspan=12 height=11></td>
    <td colspan=39 height=11></td>
</tr>
<tr valign="top">
    <td colspan=55 height=12></td>
</tr>
<tr valign="top">
    <td colspan=3 height=12></td>
    <td colspan=42 rowspan=1 width=573><font size="-2"><span style="font-size:10">-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span></font></td>
    <td colspan=10 height=12></td>
</tr>
<tr valign="top">
    <td colspan=55 height=11></td>
</tr>
<tr valign="top">
    <td colspan=29 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="1" > </TEXTAREA></td>
    <td colspan=9 height=24></td>
</tr>
<tr valign="top">
    <td colspan=2 height=32></td>
    <td colspan=21 rowspan=1 width=321><span style="font-size:14">1. Hvad betyder ID i forbindelse med&nbsp; EDB-sikkerhed ?</span></td>
    <td colspan=6 height=32></td>
    <td colspan=9 height=32></td>
</tr>
<tr valign="top">
    <td colspan=29 height=2></td>
    <td colspan=9 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=14></td>
</tr>
<tr valign="top">
    <td colspan=30 height=25></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="2" > </TEXTAREA></td>
    <td colspan=8 height=25></td>
</tr>
<tr valign="top">
    <td colspan=2 height=32></td>
    <td colspan=23 rowspan=1 width=325><span style="font-size:14">2. Hvad er et password ?</span></td>
    <td colspan=5 height=32></td>
    <td colspan=8 height=32></td>
</tr>
<tr valign="top">
    <td colspan=30 height=1></td>
    <td colspan=8 height=1></td>
</tr>
<tr valign="top">
    <td colspan=55 height=13></td>
</tr>
<tr valign="top">
    <td colspan=30 height=22></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="3" > </TEXTAREA></td>
    <td colspan=8 height=22></td>
</tr>
<tr valign="top">
    <td colspan=1 height=32></td>
    <td colspan=21 rowspan=1 width=321><span style="font-size:14">3. Har Yahoo et kalenderprogram man frit kan bruge ?</span></td>
    <td colspan=8 height=32></td>
    <td colspan=8 height=32></td>
</tr>
<tr valign="top">
    <td colspan=30 height=4></td>
    <td colspan=8 height=4></td>
</tr>
<tr valign="top">
    <td colspan=55 height=14></td>
</tr>
<tr valign="top">
    <td colspan=31 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="4" > </TEXTAREA></td>
    <td colspan=7 height=24></td>
</tr>
<tr valign="top">
    <td colspan=2 height=32></td>
    <td colspan=21 rowspan=1 width=321><span style="font-size:14">4. Hvad betyder Download ?</span></td>
    <td colspan=8 height=32></td>
    <td colspan=7 height=32></td>
</tr>
<tr valign="top">
    <td colspan=31 height=2></td>
    <td colspan=7 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=12></td>
</tr>
<tr valign="top">
    <td colspan=32 height=22></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="5" > </TEXTAREA></td>
    <td colspan=6 height=22></td>
</tr>
<tr valign="top">
    <td colspan=3 height=32></td>
    <td colspan=19 rowspan=1 width=318><span style="font-size:14">5. Når man har downloadet et program kan det være nødvendigt med unzip, hvorfor ?</span></td>
    <td colspan=10 height=32></td>
    <td colspan=6 height=32></td>
</tr>
<tr valign="top">
    <td colspan=32 height=4></td>
    <td colspan=6 height=4></td>
</tr>
<tr valign="top">
    <td colspan=55 height=14></td>
</tr>
<tr valign="top">
    <td colspan=33 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="6"> </TEXTAREA></td>
    <td colspan=5 height=24></td>
</tr>
<tr valign="top">
    <td colspan=4 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">6. Hvad er en virus ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=5 height=32></td>
</tr>
<tr valign="top">
    <td colspan=33 height=2></td>
    <td colspan=5 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=13></td>
</tr>
<tr valign="top">
    <td colspan=33 height=22></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="7" > </TEXTAREA></td>
    <td colspan=5 height=22></td>
</tr>
<tr valign="top">
    <td colspan=4 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">7. Hvordan sikrer man sig mod PC-virus ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=5 height=32></td>
</tr>
<tr valign="top">
    <td colspan=33 height=4></td>
    <td colspan=5 height=4></td>
</tr>
<tr valign="top">
    <td colspan=55 height=14></td>
</tr>
<tr valign="top">
    <td colspan=34 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="8" > </TEXTAREA></td>
    <td colspan=4 height=24></td>
</tr>
<tr valign="top">
    <td colspan=5 height=32></td>
    <td colspan=19 rowspan=1 width=320><span style="font-size:14">8. Hvad betyder backup ?</span></td>
    <td colspan=10 height=32></td>
    <td colspan=4 height=32></td>
</tr>
<tr valign="top">
    <td colspan=34 height=2></td>
    <td colspan=4 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=12></td>
</tr>
<tr valign="top">
    <td colspan=34 height=22></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="9" om, find den på internettet?" > </TEXTAREA></td>
    <td colspan=4 height=22></td>
</tr>
<tr valign="top">
    <td colspan=5 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">9. Hvad handler rapporten &quot; Det digitale Danmark&quot; om, find den på Internettet ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=4 height=32></td>
</tr>
<tr valign="top">
    <td colspan=34 height=4></td>
    <td colspan=4 height=4></td>
</tr>
<tr valign="top">
    <td colspan=55 height=14></td>
</tr>
<tr valign="top">
    <td colspan=35 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="10" > </TEXTAREA></td>
    <td colspan=3 height=24></td>
</tr>
<tr valign="top">
    <td colspan=6 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">10. Hvad er en database ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=3 height=32></td>
</tr>
<tr valign="top">
    <td colspan=35 height=2></td>
    <td colspan=3 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=13></td>
</tr>
<tr valign="top">
    <td colspan=35 height=22></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="11" > </TEXTAREA></td>
    <td colspan=3 height=22></td>
</tr>
<tr valign="top">
    <td colspan=6 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">11. Nævn nogle databaser hvor du er registreret ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=3 height=32></td>
</tr>
<tr valign="top">
    <td colspan=35 height=4></td>
    <td colspan=3 height=4></td>
</tr>
<tr valign="top">
    <td colspan=55 height=14></td>
</tr>
<tr valign="top">
    <td colspan=36 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="12" > </TEXTAREA></td>
    <td colspan=2 height=24></td>
</tr>
<tr valign="top">
    <td colspan=7 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">12. Hvad er et bruger ID ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=2 height=32></td>
</tr>
<tr valign="top">
    <td colspan=36 height=2></td>
    <td colspan=2 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=16></td>
</tr>
<tr valign="top">
    <td colspan=37 height=24></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="13" > </TEXTAREA></td>
    <td colspan=1 height=24></td>
</tr>
<tr valign="top">
    <td colspan=8 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">13. Hvad forstår du ved en hjemmeside editor ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=1 height=32></td>
</tr>
<tr valign="top">
    <td colspan=37 height=2></td>
    <td colspan=1 height=2></td>
</tr>
<tr valign="top">
    <td colspan=55 height=13></td>
</tr>
<tr valign="top">
    <td colspan=37 height=22></td>
    <td colspan=17 rowspan=3 width=242><TEXTAREA wrap=PHYSICAL rows=3 cols=27 name="14" > </TEXTAREA></td>
    <td colspan=1 height=22></td>
</tr>
<tr valign="top">
    <td colspan=8 height=32></td>
    <td colspan=20 rowspan=1 width=321><span style="font-size:14">14. Hvad er vigtigt i forbindelse med datasikkerhed ?</span></td>
    <td colspan=9 height=32></td>
    <td colspan=1 height=32></td>
</tr>
<tr valign="top">
    <td colspan=37 height=4></td>
    <td colspan=1 height=4></td>
</tr>
<tr valign="top">
    <td colspan=55 height=47></td>
</tr>
<tr valign="top">
    <td colspan=43 height=2></td>
    <td colspan=1 rowspan=2 width=73><INPUT type="submit" name="FormButton2" value="Send" ></td>
    <td colspan=11 height=2></td>
</tr>
<tr valign="top">
    <td colspan=41 height=28></td>
    <td colspan=1 rowspan=2 width=83><INPUT type="reset" name="FormButton3" value="Slet alt" ></td>
</form>
    <td colspan=1 height=28></td>
    <td colspan=11 height=28></td>
</tr>
<tr valign="top">
    <td colspan=41 height=2></td>
    <td colspan=13 height=2></td>
</tr>
</table>
</body>
</html>

//>Rune
Avatar billede medions Nybegynder
24. oktober 2002 - 00:34 #5
Og så du har denne til at gemme dine data i:

<%

'Set objConn = Server.CreateObject("ADODB.Connection")
'objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=F:\db\db1.mdb"
'strSQL = "SELECT * FROM tblOpgaver"
'Set objRs = objConn.Execute(strSQL)

'Response.Write(objRs("navn"))
'Response.Write("<p>&nbsp;<p>")

Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=F:\db\db1.mdb"
Conn.Open DSN



strSQL = "Insert into tblOpgaver ("

strSQL = strSQL & "Navn, "
strSQL = strSQL & "CPR, "
strSQL = strSQL & "Kontaktlærer, "
strSQL = strSQL & "Uddannelse, "
strSQL = strSQL & "e-mail, "
strSQL = strSQL & "1, "
strSQL = strSQL & "2, "
strSQL = strSQL & "3, "
strSQL = strSQL & "4, "
strSQL = strSQL & "5, "
strSQL = strSQL & "6, "
strSQL = strSQL & "7, "
strSQL = strSQL & "8, "
strSQL = strSQL & "9, "
strSQL = strSQL & "10, "
strSQL = strSQL & "11, "
strSQL = strSQL & "12, "
strSQL = strSQL & "13, "
strSQL = strSQL & "14) "

strSQL = strSQL & "values ( "

strSQL = strSQL & "'" & Request.Form("Navn") & "', "
strSQL = strSQL & "'" & Request.Form("CPR") & "', "
strSQL = strSQL & "'" & Request.Form("Kontaktlærer") & "', "
strSQL = strSQL & "'" & Request.Form("Uddannelse") & "', "
strSQL = strSQL & "'" & Request.Form("e-mail") & "', "

strSQL = strSQL & "'" & Request.Form("1") & "', "
strSQL = strSQL & "'" & Request.Form("2") & "', "
strSQL = strSQL & "'" & Request.Form("3") & "', "
strSQL = strSQL & "'" & Request.Form("4") & "', "
strSQL = strSQL & "'" & Request.Form("5") & "', "
strSQL = strSQL & "'" & Request.Form("6") & "', "
strSQL = strSQL & "'" & Request.Form("7") & "', "
strSQL = strSQL & "'" & Request.Form("8") & "', "
strSQL = strSQL & "'" & Request.Form("9") & "', "
strSQL = strSQL & "'" & Request.Form("10") & "', "
strSQL = strSQL & "'" & Request.Form("11") & "', "
strSQL = strSQL & "'" & Request.Form("12") & "', "
strSQL = strSQL & "'" & Request.Form("13") & "', "
strSQL = strSQL & "'" & Request.Form("14") & "')"

Response.Write(strSQL)
objConn.Execute(strSQL)
%>

-så skulle det gerne kunne vise dig nok på vej...

efter du har kigget lidt på dette, ´så tag en tur forbi www.html.dk/tutorials/asp/ og lær noget mere ;o)

//>Rune
Avatar billede sigsten Nybegynder
24. oktober 2002 - 09:23 #6
Medions:
Det er desværre alt for kompliceret for mig...og jeg har desværre ikke tid til at sætte mig ind i det i øjeblikket!! Jeg ved slet ikke hvad jeg skal gøre med det SQL noget...

Lige nu har jeg bare brug for at en kan lave det for mig!!! ...så derfor må jeg desværre afvise dit svar :-( ...medmindre du vil lave det :-))))
Avatar billede the_bma_man Nybegynder
24. oktober 2002 - 09:27 #7
Øhh, det var vel det, han gjorde? :-)
Avatar billede sigsten Nybegynder
24. oktober 2002 - 09:35 #8
Hmmm...Ja, der ka' du bare se hvor lidt jeg ved om det :-)

Hvis det var det han gjorde...hvilket det muligvis var, så må jeg som sagt have noget mere hjælp (meget mere) fordi jeg aner ikke hvad jeg skal gøre med det script :-(
Avatar billede the_bma_man Nybegynder
24. oktober 2002 - 11:04 #9
Det første kode, han lagde, copy-paste'r du ind i notepad - gemmer filen så den hedder "side1.asp".
Der skal nok lige lægges en <FORM> ind - men du sagde, du sagtens kunne lave formularen selv, så det er nok ikke noget problem.
Dernæst copy-paste'r du andet eksempel ind i notepad, og kaster denne fil for "doit.asp". (Så skal action på din <FORM> være <FORM action="doit.asp">
Så laver du en database, der hedder db1.mdb (i Access), og smidder i \db-kataloget på dit F-drev. (Hvis du lægger den et andet sted (hvis du fx. ikke har et F-drev) skal du rette der i starten, hvor der står "Data Source ="
Håber det hjalp.
Avatar billede medions Nybegynder
24. oktober 2002 - 14:09 #10
sigsten> Det jeg har ER svaret på dit spørgsmål! -så du er nødt til at sætte dig ned og kigge det igennem en gang til!

//>Rune
Avatar billede sigsten Nybegynder
25. oktober 2002 - 10:21 #11
Ok...jeg kigger det lige igennem en gang til, men det er meget muligt at jeg kommer med et tillægsspørgsmål eller to...!!

Jeg vender tilbage :-)
Avatar billede sigsten Nybegynder
29. oktober 2002 - 09:31 #12
Hej igen... Jeg har fået set lidt på det, og jeg tror godt jeg kan finde ud af resten!!

Tak for hjælpen :-)
Avatar billede sigsten Nybegynder
29. oktober 2002 - 09:33 #13
Og point :-)
Avatar billede medions Nybegynder
29. oktober 2002 - 15:39 #14
Anytime :o)
Thx 4 Poinz

//>Rune
Avatar billede the_bma_man Nybegynder
31. oktober 2002 - 09:54 #15
Gik det?
Thanx 4 points!
Avatar billede sigsten Nybegynder
31. oktober 2002 - 10:01 #16
Jeg har desværre ikke rigtig fået set ordenligt på det endnu, men jeg tror nok det skal gå :-)

Tak begge to... :-)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester