Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 24th, 2005, 11:43 AM
dave13 dave13 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 dave13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 27 sec
Reputation Power: 0
Angry please help im going mad!

Can anyone tell me whats wrong with this code??

The problem (i think!?!) is in the Conn.Execute ("INSERT... line because it works when i take this line out?

I get an HTTP 500: Internal Server Error?

Thank you all very much!!!

Code:
<%
username =request("username")
password =request("password")
checkpass=request("checkpass")
email =request("email")
uname =request("uname")
telephone =request("telephone")

if username ="" OR password = "" OR checkpass = "" OR email = "" then
	message = "Sorry but you do not seem to have filled in all the required fields, please press back to try again"
Else
 if password <> checkpass then
	message = "Sorry but the password you entered was different to the confirmation password, please press back to try again"
 Else
	Set Conn = Server.CreateObject("ADODB.Connection")
	Conn.Open Application("Database3_ConnectionString")
	Set RS = Conn.Execute ("SELECT * From MemberTable WHERE username = '" & username & "'")
	Do until RS.EOF
		pass = RS("Password")
		RS.MoveNext
	loop
	RS.Close
  IF pass <> "" Then
	message = "Sorry this username already exists, please press back to try again"
  Else	

		Set RSu = Conn.Execute ("SELECT * From MemberTable")
		do until RSu.EOF
			lastmember = RSu("userid")
			RSu.Movenext
		loop
		RSu.close
		userid = lastmember+1
		Conn.Execute ("INSERT into MemberTable (userid, username, password, email, uname, telephone) Values ('"&userid&"', '"&username&"', '"&password&"', '"&email&"','"&uname&"','"&telephone&"')")
       message = "Thank you for registering"
	
  End IF	
 End If	
End If
%>

Reply With Quote
  #2  
Old August 24th, 2005, 12:00 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,864 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 13 h 32 m 32 sec
Reputation Power: 1756
if you're using IE, turn off 'Show Friendly Error Messages' and let's see if we get a better error message.
Comments on this post
dave13 agrees!
__________________
Come JOIN the party!!!

Quote of the Month:
Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use.

Questions to Ponder:
What do you do when you see an endangered animal eating an endangered plant?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #3  
Old August 24th, 2005, 12:22 PM
dave13 dave13 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 dave13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 27 sec
Reputation Power: 0
OK I got this?...


Microsoft JET Database Engine error '80040e14'

Syntax error in INSERT INTO statement.

/welcome.asp, line 34

Reply With Quote
  #4  
Old August 24th, 2005, 12:29 PM
dave13 dave13 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 dave13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 27 sec
Reputation Power: 0
Got it...

"the use of a SQL or Access (if using Access) keyword as a table name or field name."

works now ...thanks anyway!!

Reply With Quote
  #5  
Old August 24th, 2005, 08:05 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,864 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 13 h 32 m 32 sec
Reputation Power: 1756
glad you got it working ....

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > please help im going mad!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT