Forum Moderators: coopster

Message Too Old, No Replies

Validation, then insert into database trouble

         

smiddy

6:52 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



I currently have a form on my site that allows users to join my group. They supply about 20 different fields worth of information. It has no validation. In other words, you can hit the submit button and a new record would be created in my database with a bunch of blank fields. This has only happened to me once so far.

I've read a lot about validation scripts, but I can't seem to figure out a way to do it that will allow me to pass variables, after validation, to another php page that does the insert and supplies the person with a member number.

I would think this should be simple, but it seems it is not. Any ideas on how I can make this happen with php?

Salsa

7:21 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



Try looking in the PHP forum library [webmasterworld.com]. (For future reference, there's also a link to the library near the top of every forum page.) There are several good threads there that you might adapt something from.