The same code can be seen LIVE here.
http://ee.cffcs.com/Q_2468
Good Luck
Carrzkiss
Main Topics
Browse All TopicsI want to implement a classic ASP form as shown in http://www.andrebruton.com
however how do i add validation for the first name, email etc. I'm using the below javascript for validation
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The same code can be seen LIVE here.
http://ee.cffcs.com/Q_2468
Good Luck
Carrzkiss
I changed the code up a little to make it work correctly.
I added in a Hidden Field Value
<input type="hidden" name="Pass" value="Form" />
And the, at the beginning of the script, I added in the Request,Form
If the Form is not submitted, then it will not pass no values to the page.
If the form is submitted then check to make sure that are fields have a value in them.
if trim(request.Form("Pass")=
I also just added in a Form to check if the Email address is Valid or not.
Say you type in: something@thingcom
It will get flagged. somethingthing.com
would also get flagged.
Anyway.
This is the better validation system that you can use.
The only fields that do not keep their values is the Password and VerifyPassword fields.
The reason why you should never use JavaScript to check against your form, is that
A hacker can break it and submit what ever they want to your page.
This will hopefully help to keep you safe and work well within' your page.
Good Luck
(Full working modal here http://ee.cffcs.com/Q_2468
This is the same exact code that you see below)
Carrzkiss
OK.
Took a little while, had to signup for the Service, but I probably need it anyway for my site.
Might come in handy.
working LIVE example
http://ee.cffcs.com/Q_2468
Code
http://ee.cffcs.com/Q_2468
Fill out the form and then Submit WITHOUT doing anything to the Captcha.
You will get an error.
Then will in the Captcha, and all is good.
Good Luck with it, seems very nice.
Carrzkiss
I just made this better!
If you have not filled out everything it will let you know (Like before)
If you have not filled out the reCaptcha it will let you know (Like before)
BUT.
If you have not filled the reCaptcha correctly, it will submit the page to itself.
(Using an IF Statement)
If your correctly spell the reCaptcha, then it will submit to a ThankYou.asp page.
With your information provided on it.
Pretty sweet really.
working LIVE example
http://ee.cffcs.com/Q_2468
Code
http://ee.cffcs.com/Q_2468
Let me know if you have any questions about it.
Carrzkiss
Hi Carrzkiss,
Attached 2 files:
register-ok.asp is working fine. It is live and running for a few years now. I want to add in the reCaptcha function so I amended the file. My latest working file is register-now.asp. There is error when i run it.
Error Message
Error Type:
Microsoft VBScript compilation (0x800A03F6)
Expected 'End'
/web-new/include/foot
however I am very sure footer.asp is error free.
OK.
To begin with.
I do not have time to go through all of your files, and I DO NOT have all of the files
Or the database and the what ever else is missing.
There is WAY too much work, and I just cannot do it.
I made your a fully functional working example.
It is really easy to implement, just look through the code.
Sorry, but I do not have the spare time to do your code for you.
Carrzkiss
dandeliondream:
Did you ever get this to work for you?
It is pretty bad that I spent the time that I did on this one for you, and you are not going to
Keep my informed.
I am sorry that I cannot do everything for you on this one, but it is hard to test your code
When I don't have all the files. I hope that you can understand that.
Let me know what is going on.
Carrzkiss
It looks like you have a lot of work cut out for you in this one.
I honestly cannot tell you, as I have not see the code run, so.
And the code pages that you sent over, I cannot use as they are just 2 of many that you have
Through the use of: INCLUDES
Plus, missing of the database.
I do not think that I am going to be able to assist any further on this issue.
I am very sorry, but I do not know what your site does and how it functions.
I am sorry.
The best thing to do is like I learned.
Trial and Error, as I know that you do not want to show your whole code, as some may be sensative.
Carrzkiss
Business Accounts
Answer for Membership
by: carrzkissPosted on 2009-08-28 at 02:11:46ID: 25205904
Javascript is a very bad idea, it is not secure.
If you are just wanting to make sure that the person fills out everything then.
You can have this on the same page as your form and just submit to itself.
See example below.
Good Luck
Carrzkiss
(Just copy the entire code and put it in 1 page, Save it and run it.)
Select allOpen in new window