[Q] Opinions on this site design

From: Eric (egDfAusenetE5fz_at_verizon.net)
Date: 11/02/03

  • Next message: Otto Haldi: "Re: [OT] Display data with nice border?"
    Date: Sun, 02 Nov 2003 20:15:22 GMT
    
    

    This is just a thought in my head at the moment and I wanted to get some
    opinions on an idea on how to design my web site.

    First, it would be a 100% (or very close to it) PHP site.

    The best way to descibe this thought would be to give a specific
    example.

    The site would revolve around a single .php file...index.php.

    It is a two column site. The left column is a common navigation column
    and the right column is (obviously) the content column.

    The site also involve user registration and login for access.

    So, if a user is not logged, the left column would contain the common
    username and password fields. Just below these are two links 'Register'
    and 'Forgot Password'.

    Assume that a new user needs to register. They would then proceed to
    click on the 'Register' link.

    What I have found that most sites do would be to take the user to, for
    example, http://>/register.php

    Here is the meat of the alternative I was considering.

    The 'Register' link would be:

      http://>/index.php?func=register

    Now, my php code would then see that 'func' was assigned and would call
    a function that would put the appropriate content in the right column.
    In the 'Register' case, it would be the standard request items ask of
    users (e-mail, desired username, desired password).

    In the same manner, the 'Forgot Password' link would be:

      http://>/index.php?func=forgotpassword

    Now, func would essentially represent top level sections of my site.
    The top level sections will have sub-sections. I would handle this by
    essentially doing the following:

      http://>/index.php?func=<majorsection>&param1=someinformation

    To keep index.php from growing just far to big, the major sections would
    be handled in their own .php files. index.php would basically be just a
    large if/elseif statement based on what func said (or did not say).

    If a user, who wasn't logged in, attempted to access part of the site by
    providing a 'func', access would be denied via the common session
    management provided by PHP.

    What do people think?

    -- 
    == Eric Gorr ========= http://www.ericgorr.net ========= ICQ:9293199 ===
    "Therefore the considerations of the intelligent always include both 
    benefit and harm." - Sun Tzu
    == Insults, like violence, are the last refuge of the incompetent... ===
    

  • Next message: Otto Haldi: "Re: [OT] Display data with nice border?"

    Relevant Pages

    • Re: [Q] Opinions on this site design
      ... The left column is a common navigation column ... > Assume that a new user needs to register. ... func would essentially represent top level sections of my site. ... > be handled in their own .php files. ...
      (comp.lang.php)
    • Re: [Q] Opinions on this site design
      ... > Assume that a new user needs to register. ... > users (e-mail, desired username, desired password). ... func would essentially represent top level sections of my site. ... > be handled in their own .php files. ...
      (comp.lang.php)
    • Re: [PHP] Paypal Integration
      ... Has anyone got any example integration of PHP with the Paypal API? ... Have a script where people can register for your site -- IOW, ... transaction details. ...
      (php.general)
    • Re: Account permissions needed for deployment of IE Toolbar (C#)
      ... In addition to register it for common COM registration just as your mentioned, we also need to registered it as BHO. ... We will find the common Users group only have read permission. ... Common a common user should only write to the HKEY_CURRENT_USER registry key, but BHO as a COM object, it do need to register in the HKEY_CLASSES_ROOT for COM related registation. ...
      (microsoft.public.dotnet.framework.interop)
    • RE: Building Personal Use Only Web Server on XP
      ... > Do I need to register a Domain Name even though I am working solely on my PC? ... > Once I get Apache up and running and load PHP and MySQL, ... > What tools would you recommend to develope html web pages? ...
      (microsoft.public.windowsxp.network_web)