This is a discussion on "How do I check my forms..." within the Classic ASP section. This forum, and the thread "How do I check my forms... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How do I check my forms...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
How do I check my forms...
Ok, I can create forms, and thats all good. I can see the content and use the content. What I don't know how to do is check each text field to make sure it has had text entered into it. What language should I use for this? JavaScript? VBScript? just the language is all I need, I can more than likely figure the rest of it out :wink:
|
|
#2
|
|||
|
|||
|
Depends on if you check it on the client before submitting the form or on the server after it's been sent. I'd probably say go with javascript on the client.
|
|
#3
|
|||
|
|||
|
yeah, I can do it server side, but with all the coding I know I don't know how to keep the submitted stuff into the form. So when it takes you back to the form you have to re-submit everything. I figured if I did it client side then they wouldn't have to re-insert anything.
|
|
#4
|
|||
|
|||
|
Ohh, and thanks Cat
|
|
#5
|
|||
|
|||
|
Yeah, it's simpler that way. Server side validation is usually for more complex validation, like against a database.
|
|
#6
|
|||
|
|||
|
You could put everything they submit into Session's then check if anything is missing. And you set the value if each input to
|
|
#7
|
||||
|
||||
|
i coded an entire form validation library if you feel like using it.
it's written in Java Script and it validates names, emails, phone numbers, etc (even credit cards). it also fixes those stupid UPPERCASE inputs and a little extra.... it's for my personal use and I've only just finished coding it so I must say the customization won't be the easiest thing but i'm glad to help. I think the latest copy of the code is available here: http://www.primeappliances.com/~prim...kout/forms.asp if you want to use it, just let me know.... PS.: (this site I'm working on (primeappliances.com) is to be launched next week so I'm in the middle of moving that page to the secure server so I'm not sure which is the latest version, but i'll find it if u want to use the code)
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#8
|
||||
|
||||
|
HEY!
I GOT A STAR!!!!!!!!!!!!!!! WICKED! [;D]
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#9
|
||||
|
||||
|
here's the latest version:
http://www.primeappliances.com/ssl/checkout/forms.asp
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Tags |
| check, forms |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JS and Forms | roki13 | JavaScript Forum | 1 | Jun 6th, 2007 16:28 |
| Forms | nzamusangamungu | Web Page Design | 5 | Nov 13th, 2006 14:10 |
| forms | mickc90 | PHP Forum | 3 | Aug 1st, 2006 23:06 |
| forms | atomicant_2005 | JavaScript Forum | 15 | Dec 9th, 2005 17:09 |