Need help on project - PHP form validation

129 vues
Accéder directement au premier message non lu

Art

non lue,
21 juil. 2009, 15:47:1421/07/2009
à Refresh Austin Jobs
Hi Austin PHPers,

Yes, I said AUSTIN PHPers, so if you're not in the Austin metro area,
please ignore this message. Overseas folks, please don't bother
responding as I will merely add your domain to my spam filter. Thanks
for respecting that.

PROJECT DESCRIPTION: I have a designed and coded PHP/MySQL form that
has a field where a user must enter a valid UPC code. The code entered
needs to match one from a list of UPC codes I ws provided by my
client. I currently use JavaScript Form Validator
(gen_validatorv31.js) for the basics (name, address, email, etc.) and
have for years with not a single issue. I only need someone to program
the validator for the UPC code.

gen_validator is client-side, presenting an alert box tha says "Please
enter a valid email address" and such for the various fields. I would
ideally like for the UPC code validator to function the same way so
that the form submits all of the data at once to the db.

Turn-around on this is less than two weeks. Send me a link to your
site (or client sites) and what your fee would be.

Thanks!

Art Thompson, Jr.
Logical Things - Design + Technology
917-609-1158 [m]
www.logicalthings.com
linkedin.com/in/logicalthings
twitter.com/logicalthings

Paul

non lue,
21 juil. 2009, 15:58:0121/07/2009
à refresh-a...@googlegroups.com
Art,

Here is a link to an 11-digit UPC code validation script. It is pretty
simple, much like credit card validation (a.k.a mod 10. It's all abut
understanding the pattern.

So you are validating with JS (client-side) only? The form still has
to submit and be re-validated on the server for DB insert/update.
Should not rely on JS alone in my opinion. Plus what should occur if
someone turns off JS to by pass the validation <gasp>.

Good luck with this.

P-

Art

non lue,
21 juil. 2009, 17:52:2521/07/2009
à Refresh Austin Jobs
Hi Paul,

Thanks for pointing out my laziness. ;-) I realized that the UPC
verification would at least require a look-up table (and hence server-
side validation) when the client sent me a spreadsheet's worth. Of
course, I estimated this project thinking there would only be one or
two. Anyway, I'd love to see the example you speak of but there was no
link in your message. Can you re-post it?

Cheers,

Art Thompson, Jr.
Logical Things - Design + Technology
917-609-1158 [m]
www.logicalthings.com
http://linkedin.com/in/logicalthings
http://twitter.com/logicalthings

Paul

non lue,
21 juil. 2009, 18:01:0421/07/2009
à refresh-a...@googlegroups.com
Art,

Sorry too many things at once. And it's not my example.
http://bytes.com/groups/javascript/453974-input-validation-10-11-12-digit-upc-codes

This is not my example just something I had bookmarked from years ago.
P-
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message