You are here: Newbie - Redirect to do processing « PHP Programming Language « IT news, forums, messages
Newbie - Redirect to do processing

Posted by hajaansh@googlemail.com on 12/31/05 15:53

Hi there,

I am creating my own php site but am a bit concerned with putting all
form processing into a page that is also displaying stuff (i get
overwhelmed with very long pages and like to separate processing from
displaying for maintainability). I found a possible way of separating
processing through using a redirection such as:

header("Location:" . mylocation);

so if i was logging into my site instead of going straight to the page
it needs to go to and doing all the post processing there I would have
a "processing page" which would redirect me to the correct location
perhaps depending on what was written. So if the incorrect password was
given it would go to an error page otherwise the user would be
successfully logged in. My processing pages would be in effect the
controller in the MVC pattern.

I was wondering if there were any problems people see in this and in
what situations people use it if at all and in which cases not. It
seems a misuse but if it works....who cares?

It may even be standard practise but I have looked at quite a lot of
open source php projects and found that most people do a lot of
processing in the pages that do the displaying.

Cheers for all your advice,

funky

 

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

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