Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 23rd, 2005, 08:05 PM
NotGiven
Guest
 
Posts: n/a
Default new to patterns - example of simple PHP page controller for login and database driven pages?

I am new to patterns and want to learn how to implement the PAGE CONTROLLER
model for a web site that has log-in and where the pages are dynamic
database driven pages.

I will have many questions along the way but one is:
-- It looks like you use $_GET variables to provide instrucitons for the
next action. Can you use $POST instead? Advatnages /disadvantages of
either?

Thanks.


  #2  
Old December 23rd, 2005, 08:35 PM
Jonathan
Guest
 
Posts: n/a
Default Re: new to patterns - example of simple PHP page controller for loginand database driven pages?

NotGiven wrote:[color=blue]
> I am new to patterns and want to learn how to implement the PAGE CONTROLLER
> model for a web site that has log-in and where the pages are dynamic
> database driven pages.
>
> I will have many questions along the way but one is:
> -- It looks like you use $_GET variables to provide instrucitons for the
> next action. Can you use $POST instead? Advatnages /disadvantages of
> either?
>
> Thanks.[/color]

I think you can use both, depends on your implementation.

See the following link for an explanation of the GET and POST methods
for HTML forms:

http://www.jmarshall.com/easy/cgi/cg...html#getvspost

Jonathan
  #3  
Old December 23rd, 2005, 09:05 PM
John Meyer
Guest
 
Posts: n/a
Default Re: new to patterns - example of simple PHP page controller for login and database driven pages?

NotGiven wrote:
[color=blue]
> I am new to patterns and want to learn how to implement the PAGE
> CONTROLLER model for a web site that has log-in and where the pages are
> dynamic database driven pages.
>
> I will have many questions along the way but one is:
> -- It looks like you use $_GET variables to provide instrucitons for the
> next action. Can you use $POST instead? Advatnages /disadvantages of
> either?
>
> Thanks.[/color]


Basic difference between the two: $_GET variables are appended to the end
of a URL, post variables are not. You can have a form as with a "get" or
"post" method.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles