You are here: Re: [PHP] Form handling « PHP « IT news, forums, messages
Re: [PHP] Form handling

Posted by Rory Browne on 05/14/05 04:48

> What other methods would be good to use? Using a giant if statement?
Did you read my code for this? It consisted of two lines, which
basicly did the same thing as your massive ugly switch statment. It
also does a limited amount of error-checking, in that it checks to
make sure that the file actually exists.


> However, since I'm anal, I want the entire page to be named index.php,
> which is why I am stuck on the idea of making each page's "target" set
> to index.php WITH $_SESSION['step'] being set to 1, 2, 3, whichever is
> the next step in the process. If this is bad, what are my alternatives now?

If you ask for alternatives, and then turn them down on the basis that
you're anal, well, I give up.

You could also place the step in form hidden values.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация