Avatar billede Slettet bruger
14. september 2000 - 17:18 Der er 17 kommentarer og
1 løsning

Formular problem

Når min bruger har udfyldt formen på siden add.asp (koden nedenfor) skal brugeren sendes videre til en ny side kaldet vidre.asp

Hvordan gør jeg det!

Det ville være fedt hvis der kom en popup op hvor der stod: Sourcen er nu oprettet!

og så når man trykker ok bliver man sendt videre!

Her er koden!

Det hele er lavet i ASP




<%
Const adOpenKeyset = 1
Const adLockOptimistic = 3

strMode = Request.QueryString(\"mode\")
tempConn = \"PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=\" & Server.MapPath(\"profil.mdb\") & \";UID=;PWD=;\"

If Request.Form(\"Gem\") <> \"\" Then
    strhits = Trim(Request.Form(\"hits\"))
    strnavn = Trim(Request.Form(\"navn\"))
    strurl = Trim(Request.Form(\"url\"))
    streditorhomepage = Trim(Request.Form(\"editorhomepage\"))
    streditoremail = Trim(Request.Form(\"editoremail\"))
    strdemo = Trim(Request.Form(\"demo\"))
    strniveau = Trim(Request.Form(\"niveau\"))
    strtype = Trim(Request.Form(\"type\"))
    strdescrip = Trim(Request.Form(\"descrip\"))
    streditor = Trim(Request.Form(\"editor\"))
    Set rs = Server.CreateObject(\"ADODB.RecordSet\")
    strSQL = \"SELECT  * FROM brugere WHERE (ID = 0)\"
    rs.Open strSQL, tempConn, adOpenKeyset, adLockOptimistic
    If (rs.BOF Or rs.EOF) Then
        rs.AddNew
        rs(\"hits\") = strhits
        rs(\"navn\") = strnavn
        rs(\"url\") = strurl
        rs(\"editorhomepage\") = streditorhomepage
        rs(\"editoremail\") = streditoremail
        rs(\"demo\") = strdemo
        rs(\"niveau\") = strniveau
        rs(\"type\") = strtype
        rs(\"descrip\") = strdescrip
        rs(\"editor\") = streditor
        rs.Update
    End If
    rs.Close
    Set rs = Nothing
End If
%>
<html>

<head>
<style>
A:link {color : #333366;text-decoration: none}
A:visited {color : #333366;text-decoration: none}
A:active {color : #CC3300;text-decoration: none}
A:hover {color : #CC3300;text-decoration: none}
.t{font: 11px Verdana, Arial;text-decoration: none}
.overskrift{font: 20px Verdana, Arial;text-decoration: none}
.n{font: 10px/11px Verdana, Arial;text-decoration: none}
.red{ bgcolor : #105295;font: 10px/11px Verdana, Arial;text-decoration: none}
.hvid{font: 13px Verdana, Arial;text-decoration: none; color: #FFFFFF}
a.hvid{color : #FFFFFF;text-decoration: none}
A:link.hvid{color : #FFFFFF;text-decoration: none}
A:visited.hvid{color : #FFFFFF;text-decoration: none}
A:active.hvid{color : #FFFFFF;text-decoration: none}
</style>
<title>Velkommen til fun4you.dk community</title>
</head>

<body>

  <div align=\"center\"><center><table width=\"488\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
    <tr>
      <td width=\"488\"><font face=\"Arial\" size=\"2\" color=\"Black\"><B>Opret Bruger</B><br><br><br></font></td>
    </tr>
    <tr align=\"center\">
      <td width=\"100%\">

<form method=\"POST\" action=\"add.asp\">
<input type=\"hidden\" value=\"0\" name=\"hits\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">
        <tr>
          <td valign=\"middle\" align=\"left\" colspan=\"2\"><font face=\"arial\" size=\"2\"><B><br>
          </B>Tilføj din source til vores arkiv ved at udfylde formen:<B><br>
          &nbsp; </B></font></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Navnet på din source</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"navn\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Adressen <u>direkte</u> til sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"url\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Din hjemmeside</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"editorhomepage\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Din emailadresse</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"editoremail\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Adressen <u>direkte</u> til en demo</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"demo\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Niveau på sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><select size=\"1\" name=\"niveau\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\">
    <option>Begynder</option>
    <option>Øvet</option>
    <option>Ekspert</option>
  </select></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Type (fx. ASP eller PHP)</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"type\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Kort beskrivelse af sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><textarea rows=\"4\" name=\"descrip\" cols=\"27\" style=\"border: 1; border-color: #000000; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></textarea></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Dit navn</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"editor\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\" colspan=\"2\"><br>
          <input type=\"submit\" value=\"Gem\" name=\"Gem\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"> <input type=\"button\" value=\"Annuller\" name=\"Annuller\" onClick=\"java script:history.back();\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
      </table>
</form>
</tr>
  </table>
  </center></div>
</body>
</html>
Avatar billede rah2 Nybegynder
14. september 2000 - 17:26 #1
<%
Const adOpenKeyset = 1
Const adLockOptimistic = 3

strMode = Request.QueryString(\"mode\")
tempConn = \"PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=\" & Server.MapPath(\"profil.mdb\") & \";UID=;PWD=;\"

If Request.Form(\"Gem\") <> \"\" Then
strhits = Trim(Request.Form(\"hits\"))
strnavn = Trim(Request.Form(\"navn\"))
strurl = Trim(Request.Form(\"url\"))
streditorhomepage = Trim(Request.Form(\"editorhomepage\"))
streditoremail = Trim(Request.Form(\"editoremail\"))
strdemo = Trim(Request.Form(\"demo\"))
strniveau = Trim(Request.Form(\"niveau\"))
strtype = Trim(Request.Form(\"type\"))
strdescrip = Trim(Request.Form(\"descrip\"))
streditor = Trim(Request.Form(\"editor\"))
Set rs = Server.CreateObject(\"ADODB.RecordSet\")
strSQL = \"SELECT  * FROM brugere WHERE (ID = 0)\"
rs.Open strSQL, tempConn, adOpenKeyset, adLockOptimistic
If (rs.BOF Or rs.EOF) Then
rs.AddNew
rs(\"hits\") = strhits
rs(\"navn\") = strnavn
rs(\"url\") = strurl
rs(\"editorhomepage\") = streditorhomepage
rs(\"editoremail\") = streditoremail
rs(\"demo\") = strdemo
rs(\"niveau\") = strniveau
rs(\"type\") = strtype
rs(\"descrip\") = strdescrip
rs(\"editor\") = streditor
rs.Update
End If
rs.Close
Set rs = Nothing
End If
Response.Redirect(\"vidre.asp\")
%>

Det skulle kunne gøre det !

//RaH2
Avatar billede Slettet bruger
14. september 2000 - 17:29 #2
Den skal IKKE redirecte FØR man har udfyldt formularen, men EFTER
Avatar billede rah2 Nybegynder
14. september 2000 - 17:39 #3
<%
Const adOpenKeyset = 1
Const adLockOptimistic = 3

strMode = Request.QueryString(\"mode\")
tempConn = \"PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=\" & Server.MapPath(\"profil.mdb\") & \";UID=;PWD=;\"

If Request.Form(\"Gem\") <> \"\" Then
strhits = Trim(Request.Form(\"hits\"))
strnavn = Trim(Request.Form(\"navn\"))
strurl = Trim(Request.Form(\"url\"))
streditorhomepage = Trim(Request.Form(\"editorhomepage\"))
streditoremail = Trim(Request.Form(\"editoremail\"))
strdemo = Trim(Request.Form(\"demo\"))
strniveau = Trim(Request.Form(\"niveau\"))
strtype = Trim(Request.Form(\"type\"))
strdescrip = Trim(Request.Form(\"descrip\"))
streditor = Trim(Request.Form(\"editor\"))
Set rs = Server.CreateObject(\"ADODB.RecordSet\")
strSQL = \"SELECT  * FROM brugere WHERE (ID = 0)\"
rs.Open strSQL, tempConn, adOpenKeyset, adLockOptimistic
If (rs.BOF Or rs.EOF) Then
rs.AddNew
rs(\"hits\") = strhits
rs(\"navn\") = strnavn
rs(\"url\") = strurl
rs(\"editorhomepage\") = streditorhomepage
rs(\"editoremail\") = streditoremail
rs(\"demo\") = strdemo
rs(\"niveau\") = strniveau
rs(\"type\") = strtype
rs(\"descrip\") = strdescrip
rs(\"editor\") = streditor
rs.Update
End If
rs.Close
Set rs = Nothing
End If
Response.Write(\"
<script language=\"JavaScript\">
<!--

if (confirm(\'Sourcen er nu oprettet!\')){
window.open(\'vidre.asp\',\'jaja\',\'width=800,height=600,scrollbars=yes\');
}

// -->
</script>\")
%>

Her er med POP UP Vinduet, det skulle gerne virke !

//RaH2

Avatar billede rah2 Nybegynder
14. september 2000 - 17:46 #4
I koden skal se sådan ud i stedet, ellers kommer der fejl.
<script language=\'JavaScript\'>

Og du redirecter jo heller ikke før at du har gemt den !

//RaH2
Avatar billede Slettet bruger
14. september 2000 - 18:17 #5
hvordan det?
Avatar billede rah2 Nybegynder
14. september 2000 - 19:56 #6
Fordi du først gemmer data\'en når du bliver sendt til add.asp (Som jeg regner med er samme side som koden !?, for ellers har du jo ikke noget at brug din ASP kodetil !

//RaH2
Avatar billede Slettet bruger
15. september 2000 - 06:20 #7
Der sker ikke noget når jeg gør som du har sagt!

Lave hele koden til mig hvis du vil have pointene
Avatar billede rah2 Nybegynder
15. september 2000 - 07:57 #8
Jeg kigger på det......
Avatar billede Slettet bruger
15. september 2000 - 15:34 #9
oki
Avatar billede tpiil Nybegynder
15. september 2000 - 16:53 #10
<%
Const adOpenKeyset = 1
Const adLockOptimistic = 3

strMode = Request.QueryString(\"mode\")
tempConn = \"PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=\" & Server.MapPath(\"profil.mdb\") & \";UID=;PWD=;\"

If Request.Form(\"Gem\") <> \"\" Then
strhits = Trim(Request.Form(\"hits\"))
strnavn = Trim(Request.Form(\"navn\"))
strurl = Trim(Request.Form(\"url\"))
streditorhomepage = Trim(Request.Form(\"editorhomepage\"))
streditoremail = Trim(Request.Form(\"editoremail\"))
strdemo = Trim(Request.Form(\"demo\"))
strniveau = Trim(Request.Form(\"niveau\"))
strtype = Trim(Request.Form(\"type\"))
strdescrip = Trim(Request.Form(\"descrip\"))
streditor = Trim(Request.Form(\"editor\"))
Set rs = Server.CreateObject(\"ADODB.RecordSet\")
strSQL = \"SELECT  * FROM brugere WHERE (ID = 0)\"
rs.Open strSQL, tempConn, adOpenKeyset, adLockOptimistic
If (rs.BOF Or rs.EOF) Then
rs.AddNew
rs(\"hits\") = strhits
rs(\"navn\") = strnavn
rs(\"url\") = strurl
rs(\"editorhomepage\") = streditorhomepage
rs(\"editoremail\") = streditoremail
rs(\"demo\") = strdemo
rs(\"niveau\") = strniveau
rs(\"type\") = strtype
rs(\"descrip\") = strdescrip
rs(\"editor\") = streditor
rs.Update
End If
rs.Close
Set rs = Nothing
%>
<SCRIPT>

FreeA=window.open(\"vidre.asp\",\"FreeA\",

\"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=360,height=250\")

</SCRIPT>
<%
End If
%>
<html>

<head>
<style>
A:link {color : #333366;text-decoration: none}
A:visited {color : #333366;text-decoration: none}
A:active {color : #CC3300;text-decoration: none}
A:hover {color : #CC3300;text-decoration: none}
.t{font: 11px Verdana, Arial;text-decoration: none}
.overskrift{font: 20px Verdana, Arial;text-decoration: none}
.n{font: 10px/11px Verdana, Arial;text-decoration: none}
.red{ bgcolor : #105295;font: 10px/11px Verdana, Arial;text-decoration: none}
.hvid{font: 13px Verdana, Arial;text-decoration: none; color: #FFFFFF}
a.hvid{color : #FFFFFF;text-decoration: none}
A:link.hvid{color : #FFFFFF;text-decoration: none}
A:visited.hvid{color : #FFFFFF;text-decoration: none}
A:active.hvid{color : #FFFFFF;text-decoration: none}
</style>
<title>Velkommen til fun4you.dk community</title>
</head>

<body>

  <div align=\"center\"><center><table width=\"488\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
    <tr>
      <td width=\"488\"><font face=\"Arial\" size=\"2\" color=\"Black\"><B>Opret Bruger</B><br><br><br></font></td>
    </tr>
    <tr align=\"center\">
      <td width=\"100%\">

<form method=\"POST\" action=\"add.asp\">
<input type=\"hidden\" value=\"0\" name=\"hits\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">
        <tr>
          <td valign=\"middle\" align=\"left\" colspan=\"2\"><font face=\"arial\" size=\"2\"><B><br>
          </B>Tilføj din source til vores arkiv ved at udfylde formen:<B><br>
          &nbsp; </B></font></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Navnet på din source</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"navn\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Adressen <u>direkte</u> til sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"url\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Din hjemmeside</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"editorhomepage\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Din emailadresse</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"editoremail\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Adressen <u>direkte</u> til en demo</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"demo\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Niveau på sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><select size=\"1\" name=\"niveau\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\">
    <option>Begynder</option>
    <option>Øvet</option>
    <option>Ekspert</option>
  </select></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Type (fx. ASP eller PHP)</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"type\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Kort beskrivelse af sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><textarea rows=\"4\" name=\"descrip\" cols=\"27\" style=\"border: 1; border-color: #000000; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></textarea></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Dit navn</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"editor\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\" colspan=\"2\"><br>
          <input type=\"submit\" value=\"Gem\" name=\"Gem\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"> <input type=\"button\" value=\"Annuller\" name=\"Annuller\" onClick=\"java script:history.back();\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
      </table>
</form>
</tr>
  </table>
  </center></div>
</body>
</html>
Avatar billede tpiil Nybegynder
15. september 2000 - 16:54 #11
så skulle den åbne et nyt vindue, du skal bare lave tak siden i en fil der heder vidre.asp
Avatar billede Slettet bruger
16. september 2000 - 13:00 #12
tpiil>>> kan du ikke også lave det sådan at det gamle vindue bliver vidresendt til default.asp?
Avatar billede tpiil Nybegynder
16. september 2000 - 15:06 #13
<%
Const adOpenKeyset = 1
Const adLockOptimistic = 3

strMode = Request.QueryString(\"mode\")
tempConn = \"PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=\" & Server.MapPath(\"profil.mdb\") & \";UID=;PWD=;\"

If Request.Form(\"Gem\") <> \"\" Then
strhits = Trim(Request.Form(\"hits\"))
strnavn = Trim(Request.Form(\"navn\"))
strurl = Trim(Request.Form(\"url\"))
streditorhomepage = Trim(Request.Form(\"editorhomepage\"))
streditoremail = Trim(Request.Form(\"editoremail\"))
strdemo = Trim(Request.Form(\"demo\"))
strniveau = Trim(Request.Form(\"niveau\"))
strtype = Trim(Request.Form(\"type\"))
strdescrip = Trim(Request.Form(\"descrip\"))
streditor = Trim(Request.Form(\"editor\"))
Set rs = Server.CreateObject(\"ADODB.RecordSet\")
strSQL = \"SELECT  * FROM brugere WHERE (ID = 0)\"
rs.Open strSQL, tempConn, adOpenKeyset, adLockOptimistic
If (rs.BOF Or rs.EOF) Then
rs.AddNew
rs(\"hits\") = strhits
rs(\"navn\") = strnavn
rs(\"url\") = strurl
rs(\"editorhomepage\") = streditorhomepage
rs(\"editoremail\") = streditoremail
rs(\"demo\") = strdemo
rs(\"niveau\") = strniveau
rs(\"type\") = strtype
rs(\"descrip\") = strdescrip
rs(\"editor\") = streditor
rs.Update
End If
rs.Close
Set rs = Nothing
%>
<SCRIPT>

FreeA=window.open(\"vidre.asp\",\"FreeA\",

\"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=360,height=250\")

</SCRIPT>
<%
Response.Redirect \"default.asp\"
End If
%>
<html>

<head>
<style>
A:link {color : #333366;text-decoration: none}
A:visited {color : #333366;text-decoration: none}
A:active {color : #CC3300;text-decoration: none}
A:hover {color : #CC3300;text-decoration: none}
.t{font: 11px Verdana, Arial;text-decoration: none}
.overskrift{font: 20px Verdana, Arial;text-decoration: none}
.n{font: 10px/11px Verdana, Arial;text-decoration: none}
.red{ bgcolor : #105295;font: 10px/11px Verdana, Arial;text-decoration: none}
.hvid{font: 13px Verdana, Arial;text-decoration: none; color: #FFFFFF}
a.hvid{color : #FFFFFF;text-decoration: none}
A:link.hvid{color : #FFFFFF;text-decoration: none}
A:visited.hvid{color : #FFFFFF;text-decoration: none}
A:active.hvid{color : #FFFFFF;text-decoration: none}
</style>
<title>Velkommen til fun4you.dk community</title>
</head>

<body>

  <div align=\"center\"><center><table width=\"488\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
    <tr>
      <td width=\"488\"><font face=\"Arial\" size=\"2\" color=\"Black\"><B>Opret Bruger</B><br><br><br></font></td>
    </tr>
    <tr align=\"center\">
      <td width=\"100%\">

<form method=\"POST\" action=\"add.asp\">
<input type=\"hidden\" value=\"0\" name=\"hits\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">
        <tr>
          <td valign=\"middle\" align=\"left\" colspan=\"2\"><font face=\"arial\" size=\"2\"><B><br>
          </B>Tilføj din source til vores arkiv ved at udfylde formen:<B><br>
          &nbsp; </B></font></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Navnet på din source</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"navn\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Adressen <u>direkte</u> til sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"url\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Din hjemmeside</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"editorhomepage\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Din emailadresse</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"editoremail\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Adressen <u>direkte</u> til en demo</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" value=\"http://\" name=\"demo\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Niveau på sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><select size=\"1\" name=\"niveau\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\">
    <option>Begynder</option>
    <option>Øvet</option>
    <option>Ekspert</option>
  </select></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Type (fx. ASP eller PHP)</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"type\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Kort beskrivelse af sourcen</font></B></td>
          <td valign=\"middle\" align=\"left\"><textarea rows=\"4\" name=\"descrip\" cols=\"27\" style=\"border: 1; border-color: #000000; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></textarea></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\"><div align=\"right\"><p><B><font face=\"arial\" size=\"2\">Dit navn</font></B></td>
          <td valign=\"middle\" align=\"left\"><input type=\"text\" name=\"editor\" size=\"35\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
        <tr>
          <td valign=\"middle\" align=\"left\" colspan=\"2\"><br>
          <input type=\"submit\" value=\"Gem\" name=\"Gem\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"> <input type=\"button\" value=\"Annuller\" name=\"Annuller\" onClick=\"java script:history.back();\" style=\"border: 1; border-color: #FFFFFF; border-style: solid; font-family: Verdana; font-size: 8pt; font-weight:bold; background-color: #990000; color: #FFFFFF\" border-style: solid; font-family: \"Verdana\"; font-size: 8pt; font-weight:bold; background-color: \"#990000\"; color: \"#000000\" ; size=\"25\"></td>
        </tr>
      </table>
</form>
</tr>
  </table>
  </center></div>
</body>
</html>
Avatar billede Slettet bruger
24. september 2000 - 21:17 #14
Det virker ikke
Avatar billede Slettet bruger
24. september 2000 - 21:17 #15
Slet ikke
Avatar billede tpiil Nybegynder
24. september 2000 - 21:20 #16
hvorfor kommer du ikke med fejlen i stedet for at opgive spørgsmålet???
Avatar billede Slettet bruger
25. september 2000 - 14:25 #17
Der er ikke nogen fejl og jeg skal bruger pointene
Avatar billede tpiil Nybegynder
25. september 2000 - 17:14 #18
helt fint!
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