Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2007, 06:56 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with ASP

This is the HTML code I wrote (ADDclient.HTML, wwwroot/project)
<html dir="rtl">
<head>
<title>ãó 1</title>
</head>
<body>
    <form action="http://127.0.0.1/project/ADDclient.asp" method="post" name="frm1">
Insert Client ID
    <input type="text" name="ClientID">
    <br>
Insert User Name
    <input type="text" name="UserName">
    <br>
Insert Email
    <input type="text" name="Email">
    <br>
Insert Password
    <input type="password" name="Password">
    <br>
Send
    <input type="submit" value="ùìç">
    </form>
</body>
</html>


This is the ASP code I wrote (ADDclient.ASP, wwwroot/project)

<html dir="rtl">
<head>
<title>ãó 2</title>
</head>
<body>
<%
Set connection=Server.CreateObject("ADODB.Connection")
stconnection="Provider=Microsoft.Jet.OLEDB.4.0;Dat a Source=" &_
Server.MapPath("/project/db/clnew.mdb")
connection.open stconnection

ClientID=request.form("ClientID")
UserName=request.form("UserName")
Email=request.form("Email")
Password=request.form("Password")

SQLstring="Insert into Client values(" & clientID & ",'" & UserName & "','" & Email & "','" & Password & "')"

connection.Execute(SQLstring)
connection.Close
Set connection=nothing
%>
You succeeded registering
<br/><br/>
<button onclick="document.location='ADDclient.html';">çæ øä ìèåôñ</button>
</body>
</html>

This is the ACCESS file (wwwtoot/project/db)
http://rapidshare.com/files/20966509/CLNEW.mdb.html

When i try to register a client it gives me this erorr:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/project/ADDclient.asp, line 19

What is wrong?
 
Old March 16th, 2007, 11:05 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The error message you are receiving tells you what your problem is.
At least one of your values is missing. Can you guess which one?

I would guess it is the ClientId, unless you allow your users to enter their own client id number.

Regardless, you must always validate the data that is submitted in a form before you attempt to insert it into the database.


Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
Problem in asp label vickytarun ASP.NET 1.0 and 1.1 Basics 2 November 3rd, 2007 06:17 AM
Server to Server XML Problem (ASP.NET to ASP) Enwood XML 7 April 26th, 2006 03:22 AM
asp problem lotuseducation HTML Code Clinic 1 September 12th, 2005 11:28 AM
ch15 adduser.asp problem beginning asp 3 ellie Access 1 December 30th, 2004 01:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.