How do I check my forms...

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 13th, 2004, 05:59
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old May 13th, 2004, 06:21
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old May 13th, 2004, 06:25
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old May 13th, 2004, 06:28
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Ohh, and thanks Cat
  #5 (permalink)  
Old May 13th, 2004, 07:10
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, it's simpler that way. Server side validation is usually for more complex validation, like against a database.
  #6 (permalink)  
Old May 13th, 2004, 09:53
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
You could put everything they submit into Session's then check if anything is missing. And you set the value if each input to
Code: Select all
value="<%=Session("input_name")%>"
  #7 (permalink)  
Old May 13th, 2004, 22:30
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
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 (permalink)  
Old May 13th, 2004, 22:33
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
HEY!

I GOT A STAR!!!!!!!!!!!!!!!

WICKED! [;D]
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #9 (permalink)  
Old May 14th, 2004, 11:42
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
here's the latest version:
http://www.primeappliances.com/ssl/checkout/forms.asp
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Closed Thread

Tags
check, forms

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JS and Forms roki13 JavaScript Forum 1 Jun 6th, 2007 15:28
Forms nzamusangamungu Web Page Design 5 Nov 13th, 2006 13:10
forms mickc90 PHP Forum 3 Aug 1st, 2006 22:06
forms atomicant_2005 JavaScript Forum 15 Dec 9th, 2005 16:09
Hello, check this ;) Anonymous User Introduce Yourself 1 Feb 12th, 2004 19:10


All times are GMT. The time now is 04:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43