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 January 28th, 2002, 03:33 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: 22
How can i take value from multiples text fields

Originally posted by : ray (kyaw_thu@yahoo.com)here is the detail with examplei will have 4 textfields. name as A,B,C and Dlet say i only want to enter the value in A and Bthen i take some value from database(let say it is N) after that i will calculate it like A/N or B/N then i will send that values back to database.Here is the question;1) how can i write the asp code abt taking the value from textfield that ONLY ENTER then begin calculating. I DONT want the textfields that not enter. It seem simple but actually not

Reply With Quote
  #2  
Old February 8th, 2002, 02:54 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: 22
Originally posted by : SamWell, The easy way is to find out which fields are entered. Example, user may enter A, C, D.Now, you'll need a few IF statements and depending on the fields the user entered, you just execute the correct statment.Another way (also easy) is to have severalvariables to hold you SQL.Example, sqlA holds PART of the insert statement for variable A, sqlB holds PART of the insert statment for variable B, and so on.Then Depending on what the user entered, you APPEND the corresponding variables to make up the necessay SQL to insert the values.Hope this gives you a head start. 8-)->S.C.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > How can i take value from multiples text fields


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