advice on "create a form" script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
speedamp
Forum Commoner
Posts: 45
Joined: Tue Apr 29, 2003 3:59 pm

advice on "create a form" script

Post by speedamp »

hello,

I am starting to work on a form for my Online Registration website, and what i want is a race manager the ability to fill out a detailed online form, submit an image, and then have the results populate a php template which would then create their own onilne registration form. This form would then allow individuals to sign up for the event online (road race, etc...).

Does anybody have any advice on anything i should avoid? sessions vs. cookies vs. passing variables in headers, etc.

thanks!

-Michael
User avatar
Lord Sauron
Forum Commoner
Posts: 85
Joined: Tue Apr 20, 2004 5:53 am
Location: Tilburg, NL

Post by Lord Sauron »

I guess it's even more important to have a good seperation between the functions.

One script for layout (the form itself), one script for checking the variable content validity once the form has been filled up and one script for filling your database.

Personally I prefer using even a 4th (general) script for coordination and redirection, but only if you are using several forms.
Post Reply