By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,716 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,716 IT Pros & Developers. It's quick & easy.

php form background

P: n/a
Hello!

I am trying to set up an form, which at the end makes a vacation
package.

It has a certain amount of pages, depending on what the client wants.

I would like to read some background articles, how you make such forms,
since I thought of different ways to approach it, but I don't know which
is the best one..

I have already one working, but it does not allow any correction
(everything has to be filled out exactly and in a fixed order).

The goals are:
- form with form validation (validation already done)
- all data is stored as session var
- there are some selections which are depending on other ones. for
example, it depends on the hotel, which plans (all inclusive, only
breakfast, ...) i can choose. so if I change the hotel, i have to look
if the plan exists in the new hotel, and if not tell the user he has to
choose a new one.

What I would like to know are basics, such as what is a good way to go
forward and backward in a multiple page form, always thinking about the
possibility to change things. when is the best time to make the
validation, and when to store it as session var?

sorry if all is a little bit confusing. At the end I would like to read
something sophisticate about forms, if possible togheter with php
validation since i dont know javascript...

thankx in advance,

Flos

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Florian Peer wrote:

I am trying to set up an form, which at the end makes a vacation
package. <snip> The goals are:
- form with form validation (validation already done)
- all data is stored as session var
- there are some selections which are depending on other ones. for
example, it depends on the hotel, which plans (all inclusive, only
breakfast, ...) i can choose. so if I change the hotel, i have to look
if the plan exists in the new hotel, and if not tell the user he has to
choose a new one. <snip> What I would like to know are basics, such as what is a good way to go
forward and backward in a multiple page form, always thinking about the
possibility to change things. when is the best time to make the
validation, and when to store it as session var?


This is pretty complicated. I have yet to see a tutorial or book that addresses
something like this.

I would think your best bet is to go to sourceforge.net or hotscripts.com and
run and look at some open source php that addresses some of the points you
brought up above. I doubt you'll get the kind of in-depth answer you want here.

Good luck,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.