473,769 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with validation

Hi everyone,

I need help with a simple form validation. The form I'm using has
been the target of some spammers, and I'm wondering what else I can
do. I have a very simple validation, checking for blanks, and found
an additional zipcode validation form here:

http://javascript.internet.com/forms/val-zip-code.html

I tried combining them, and it doesn't seem to be working. I'm not
much of a programmer, so I need help. Here's the page:

http://washingtonforedwards.com/contact.php

Can someone help me at least make the zipcode validation work?

Thanks!

Chad Lupkes
Seattle
Jan 5 '08 #1
2 1467
Chad Lupkes wrote:
I need help with a simple form validation. The form I'm using has
been the target of some spammers, and I'm wondering what else I can
do. I have a very simple validation, checking for blanks, and found
an additional zipcode validation form here:

http://javascript.internet.com/forms/val-zip-code.html

I tried combining them, and it doesn't seem to be working. I'm not
much of a programmer, so I need help. Here's the page:

http://washingtonforedwards.com/contact.php

Can someone help me at least make the zipcode validation work?
Focus on server-side validation contact_success .php, that way you can
keep spammers out. Client-side validation does not help as anyone can
disable client-side JavaScript or simply directly post to your
contact_success .php without even using a browser.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 5 '08 #2
Good point. I'll look into PHP, which is the server-side script that
I'm most familiar with.

Thanks!

Chad

On Jan 5, 9:41 am, Martin Honnen <mahotr...@yaho o.dewrote:
Chad Lupkes wrote:
I need help with a simple form validation. The form I'm using has
been the target of some spammers, and I'm wondering what else I can
do. I have a very simple validation, checking for blanks, and found
an additional zipcode validation form here:
http://javascript.internet.com/forms/val-zip-code.html
I tried combining them, and it doesn't seem to be working. I'm not
much of a programmer, so I need help. Here's the page:
http://washingtonforedwards.com/contact.php
Can someone help me at least make the zipcode validation work?

Focus on server-side validation contact_success .php, that way you can
keep spammers out. Client-side validation does not help as anyone can
disable client-side JavaScript or simply directly post to your
contact_success .php without even using a browser.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 5 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4036
by: qsweetbee | last post by:
I have a form(fAddUsers) in my database. It is continue form for data entry. Some fields are required fields. Some are optional fields. There is 1 particular filed(TokenExpirationDate)on the form which is depended on the other field(TokenID)whether it is blank or not. If the "TokenID" field is blank, the "TokenExpirationDate" field can be blank also. But if the "TokenID" field is not blank or null, the "TokenExpirationDate" field must be...
3
5265
by: Navin | last post by:
Hello friends... On a single asp.net web page i have a single server-side form that contains a couple of user-controls. Each user control has its own functionality and contains server-side textbox controls, requiredfieldvalidator controls which validate the textboxes, and a linkbutton control that postbacks the web page. The problem is, when the user clicks on the linkbutton control on one user control, the requiredfieldvalidator gets...
2
1631
by: Paul | last post by:
Hi, I hope somebody can help me with the following. (I have tried searching for a solution on the newsgroups but nothing is quite what I need. Feel free to point me in the direction of anything I may have missed though.) I have a form with 2 text boxes, two list boxes and 2 buttons (A & B). Both buttons must perform some validation but they differ in their extent. Button A must ensure that a date has been entered in both text
5
304
by: raagz | last post by:
Hi, I am using the .NET validation controls for validating . The validation works fine with IE but none of them work with Netscape 6 browser. Do i have to configure something in vS.NET to make the validations work in Netscape too or is it .net validation controls dont work with Netscape.
2
1405
by: msnews.microsoft.com | last post by:
Hi All, I m facing a problem. As u know asp.net vallidators did not work in non-microsoft browsers. So for that i m using Server Side Solution. But i don't understand how can i show the validation summery with all messeges as they show on client side in IE. Means that when we submit the form to server in IE, then page is validated on the client side and if there is some error these are shown in the Validation Summery as a list. This thing...
6
1438
by: serge calderara | last post by:
Dear all, I have read that ASP.NET does double user input validation of control when they are place on the page. Once on teh client side and again from server side right ? Could explain how this process is exaclty working ? regards thnaks for your help
36
3110
by: aljamala | last post by:
Hi, I keep getting this warning on a page, but I do not know what the problem is...does anyone have an idea about what could be wrong? line 88 column 7 - Warning: missing </formbefore <td> it highlights this line: <form name="frmCurrency" action="" method="post"> Page source....
2
1503
by: vijaykk | last post by:
Hi @, I new to java and i am facing
4
1441
by: AMBLY | last post by:
Hi Hope you can help me with this I run Access2000 on XP Form has 3 fields: cboSTATUS - which can be set via Limited value List A B or Complete. Default is set as A. cboTHIS - which can be set via Limited Value List X, Y or Z. No Default. Intiially field in blank (Null). txtTHAT - which can be anything. No Default text. Intiially field in blank (Null).
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.