SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

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 November 28th, 2001, 06:46 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
Only able to use numbers in a form post text field ??

Originally posted by : Mal (mal@go-planit.co.uk)Can only use numbers in a text form field??????On the posted page I have:rdev=request.form("rdev")I wish to put the results in the database so I'm using:db.execute("update orders set rdevref= " & rdev & " where orderid=" & valid_sql(orderid))but it will only allow me to use numbers in the form text field, I wish to use any character. if I get rid of the db.execute I can put anything in. It's definitely passing it through because I checked with a response.write. I get Http error 500 page returned if I try to use anything other than numbers. The database feild can definitely take any character as if I change the db.execute bit to rdevref='test///***' (or anything similar) it puts it in. So I'm suspecting rdevref= " & rdev & " is coded incorrectly.

Reply With Quote
  #2  
Old January 3rd, 2002, 04:17 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
Originally posted by : Stephen W Roberts Jr (racegene@yahoo.com)Some of the dbs ive used require you to enclose all strings in single quotes(' '). If that doesn't work, Im not sure. ------------Mal at 11/28/2001 3:46:18 AMCan only use numbers in a text form field??????On the posted page I have:rdev=request.form("rdev")I wish to put the results in the database so I'm using:db.execute("update orders set rdevref= " & rdev & " where orderid=" & valid_sql(orderid))but it will only allow me to use numbers in the form text field, I wish to use any character. if I get rid of the db.execute I can put anything in. It's definitely passing it through because I checked with a response.write. I get Http error 500 page returned if I try to use anything other than numbers. The database feild can definitely take any character as if I change the db.execute bit to rdevref='test///***' (or anything similar) it puts it in. So I'm suspecting rdevref= " & rdev & " is coded incorrectly.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Only able to use numbers in a form post text field ??


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 5 hosted by Hostway
Stay green...Green IT