Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.



 Subscribe in a reader

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

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old May 13th, 2004, 06: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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old May 13th, 2004, 07: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old May 13th, 2004, 07: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old May 13th, 2004, 07:28
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Ohh, and thanks Cat
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old May 13th, 2004, 08: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old May 13th, 2004, 10: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")%>"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old May 13th, 2004, 23:30
spinal007's Avatar
Most Reputable Member
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,685
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old May 13th, 2004, 23:33
spinal007's Avatar
Most Reputable Member
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,685
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
HEY!

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

WICKED! [;D]
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old May 14th, 2004, 12:42
spinal007's Avatar
Most Reputable Member
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,685
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
here's the latest version:
http://www.primeappliances.com/ssl/checkout/forms.asp
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 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


All times are GMT. The time now is 14:17.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8