26. juli 2002 - 11:25
#14
jeg har ændret det til et Yes/No felt men jeg får denne fejl nu
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/indsaet.asp, line 152
her er scriptet
<html>
<head>
<title>d</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="styles.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#006699" vlink="#006699" alink="#006699">
<table border="0" width="700" bgcolor="#000000" cellspacing="1" cellpadding="0" align="center">
<tr>
<td width="100%" bgcolor="#FFFFFF" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr bgcolor="#FFFFFF">
<td width="50%"><font size="5"><b><font face="Verdana, Arial, Helvetica, sans-serif">JWRingelink
1.0 ASP</font></b></font></td>
<td align="right" valign="bottom" nowrap width="50%">
<div align="right"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0' cellspacing='0' cellpadding='0' width='700' align="center" height="19">
<tr>
<td width='1' valign='top' bgcolor='#000000'><img src="images/intet.gif" width='1'></td>
<td width='698' valign='top' bgcolor='#f7f7f7'>
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td width="59%"><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2"><a href="index.asp">[
Hjem</a> </font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">|
</font></b></font></b></font><font size="2"><a href="ringetoner.asp?alfa=ABCD">Ringetoner</a></font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">
</font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">|
</font></b></font></b></font></b></font></b></font></b></font><font size="2"><a href="topliste.asp">Top40</a></font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">
| </font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2"><a href="nye.asp">Nyeste</a></font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">
| </font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font><font size="2"><a href="indsaet.asp">Tilføj
</a></font><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">|
</font></b></font></b></font></b></font></b></font></b></font> <font size="2"><a href="admin/login.asp" target="_self">Admin
</a> ]</font></b></font></b></font></b></font></b></font></b></font>
</td>
<td width="41%">
<div align="right"><b></b></div>
</td>
</tr>
</table>
</td>
<td width='1' valign='top' bgcolor='#000000'><img src="intet.gif" width='1'></td>
</tr>
</table>
<table border="0" width="700" bgcolor="#000000" cellspacing="1" cellpadding="0" align="center">
<tr>
<td bgcolor="#FFFFFF" valign="top" colspan="2">
<div align="center"><br>
<form action="indsaet.asp" method="post">
<table width="400" border="0" cellspacing="1" cellpadding="3" class="bottom" align="center" bgcolor="#f7f7f7">
<tr>
<td width="134"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Dit
Navn <span class="rot"> <font color="#FF0000">*</font></span></font><br>
<input type="text" name="navn" class="bottom">
</td>
<td width="251"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Email:</font><span class="rot"><br>
<input type="text" name="email" class="bottom">
</span></td>
</tr>
<tr>
<td width="134"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Ringetonens
Navn <span class="rot"> <font color="#FF0000">*</font></span></font><br>
<input type="text" name="tonenavn" class="bottom">
</td>
<td width="251"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Tempo:</font><span class="rot"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="rot"><font color="#FF0000">*</font></span></font><br>
<select size="1" name="tempo" class="ramme" style="border: 1 solid #000000">
<option value="Vælge Selv" selected><span class="rot">For
Nokia</span></option>
<option value="40 BPM"><span class="rot">40 BPM</span></option>
<option value="45 BPM"><span class="rot">45 BPM</span></option>
<option value="50 BPM"><span class="rot">50 BPM</span></option>
<option value="56 BPM"><span class="rot">56 BPM</span></option>
<option value="63 BPM"><span class="rot">63 BPM</span></option>
<option value="70 BPM"><span class="rot">70 BPM</span></option>
<option value="80 BPM"><span class="rot">80 BPM</span></option>
<option value="90 BPM"><span class="rot">90 BPM</span></option>
<option value="100 BPM"><span class="rot">100 BPM</span></option>
<option value="112 BPM"><span class="rot">112 BPM</span></option>
<option value="125 BPM"><span class="rot">125 BPM</span></option>
<option value="140 BPM"><span class="rot">140 BPM</span></option>
<option value="160 BPM"><span class="rot">160 BPM</span></option>
<option value="180 BPM"><span class="rot">180 BPM</span></option>
<option value="200 BPM"><span class="rot">200 BPM</span></option>
<option value="225 BPM"><span class="rot">225 BPM</span></option>
</select>
</span></td>
</tr>
<tr>
<td colspan="2" height="167"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
Nokia<span class="rot"><font color="#FFFFFF"> <font color="#FF0000">*</font></font></span><font color="#FF0000">
</font></font><font color="#FF0000"><br>
</font>
<textarea name="rnokia" cols="50" rows="8" class="bottom"></textarea>
</td>
</tr>
<tr>
<td colspan="2" height="167"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
Siemens<span class="rot"><font color="#FFFFFF"> <font color="#FF0000">*</font></font></span><font color="#FF0000">
</font></font><font color="#FF0000"><br>
</font>
<textarea name="rsiemens" cols="50" rows="8" class="bottom"></textarea>
</td>
</tr>
<tr>
<td colspan="2" height="167"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
Ericsson<span class="rot"><font color="#FFFFFF"> <font color="#FF0000">*</font></font></span><font color="#FF0000">
</font></font><font color="#FF0000"><br>
</font>
<textarea name="rericsson" cols="50" rows="8" class="bottom"></textarea>
</td>
</tr>
<tr>
<td colspan="2"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="rot">
</span></font>
<table border="0" cellspacing="0" cellpadding="0" width="200">
<tr>
<td align="left">
<div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="rot">
<font color="#FF0000">*</font></span><font color="#666666">
= Skal indtastes</font></font></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="400">
<tr>
<td>
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><b>
<input type="Submit" value="Tilføj" name="Submit">
<input type="Reset" value="Slet Alt" name="Reset">
</b></font></div>
</td>
</tr>
</table>
</form>
<%
If Trim(Request("navn")) > "" Then
Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath ("database.mdb")
Conn.Open DSN
if request("navn") = "" OR request("tonenavn") ="" OR request("tempo") ="" OR request("rsiemens")="" OR request("rericsson")="" then
response.write("Du mangler at indtaste en oplysning")
else
Conn.Execute "INSERT INTO jwringetoner (navn,email,tonenavn,tempo,rnokia,rsiemens,rericsson,hits,godkendt,kl,dato,ip) VALUES ('" & Request("navn") & "','" & Request("email") & "','" & Request("tonenavn") & "','" & Request("tempo") & "','" & Request("rnokia") & "','" & Request("rsiemens") & "','" & Request("rericsson") & "','0','Nej','" & time() & "','" & date() & "','" & Request("REMOTE_ADDR") & "')"
Conn.Close: Set Conn = Nothing
Response.Write "<h1>Tak for din ringetone - din ringetone er blevet sat til at blive accept hos webmasteren!</h1>"
%>
<% End If %>
<% end if %>
<p>
<p>
</div>
</td>
</tr>
</table>