Results 1 to 5 of 5

Thread: php refrence pages or self post?

  1. #1
    Join Date
    Jul 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default php refrence pages or self post?

    ok so I am working on a blog site. Mainly just to learn php. Currently I have 6 or 7 pages handling the requests.

    I could change the code and start self posting. But I am not sure if its worth the extra hassle. Can anyone explain the importance of rewriting it to self post or is my code fine as is?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I have no idea what you are talking about. Please describe it in more detail or link us to your page. Either way, I think it depends on the intent of your site, but I'm unclear about that as well.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I think you're talking about having a form and its handler on the same page. Personally, I like this approach: it modularises things nicely. However, how you do it is entirely up to you. You can have a whole site in one file if that makes sense for your site. One of the areas in which PHP excels is its flexibility as to the layout of your site (although this has its disadvantages too).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Agreed, if that is the question. A simple if statement can make it work very well.

    The biggest benefit is that you can interpret the data and output the form on the same page, so you can display an error message if the data was not complete, etc. If it is correct, then display the 'next page' instead.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jul 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    Agreed, if that is the question. A simple if statement can make it work very well.

    The biggest benefit is that you can interpret the data and output the form on the same page, so you can display an error message if the data was not complete, etc. If it is correct, then display the 'next page' instead.
    Yes, that is what i was referring to. I had a hard time trying to explain it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •