PHP Gurus.. I have a site idea..

Discussion in 'OT Technology' started by DatacomGuy, May 19, 2006.

  1. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    I have an idea for a site I'd like to create. It's all in my head, and very functional, but I know nothing about programming PHP. :(

    I want to lay out the site idea, and I'm looking for feedback on difficulty level and if its something I can do with enough research from the internet to get it done.

    Basically i want to create a site with a login. Once the user logs in, they have options to do a few things.

    The main task is a customer order acknowledgement app. The user would come to this page and would be able to choose what kind of acknowledgement they are going to send (i.e. Receipt of Order, Order shipping, Order cancellation) and then go to a new page and within the page would have a series of fields to answer (customer info, email addy, ship-to info, shipping charges, tracking #, etc). Once they answered the fields and hit submit, it would then email the customer and thank them for the order and provide shipping info. I'd like for the email to look professional, utilizing logos, etc.

    How difficult would it be to accomplish this? I've been reading about the mail () function.. seems do'able..
     
  2. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    do NOT use the mail() function. Lack of features, coupled with HUGE security problems is the reasoning. However, writing your own (or getting a free one of the net) socket-connection is not difficult. Other than how you mail it, everything seems VERY easy and do-able if you have some programming experience, and are a good learner.

    As for formatting, the easiest way is to send an HTML email.
     
  3. Slid.

    Slid. I'm a guy.

    Joined:
    Oct 25, 2001
    Messages:
    1,928
    Likes Received:
    0
    Location:
    NH
    Sounds pretty easy to do. mail() can infact be used to send HTML email like so:

    Code:
    $mail_headers = "MIME-Version: 1.0\r\n";
    $mail_headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    
    $mail_to = "[email protected]";
    $mail_subject = "Mail Subject";
    $mail_body = "<b>HTML Email</b><br>Rar, html!";
    
    mail($mail_to, $mail_subject, $mail_body, $mail_headers);
    
     
  4. Slid.

    Slid. I'm a guy.

    Joined:
    Oct 25, 2001
    Messages:
    1,928
    Likes Received:
    0
    Location:
    NH
    Assuming you have HTML experience and some other programming experience along with a decent grasp of Google.com for help you could have this done in a weekend. You'd just need to learn:

    -How to connect to a mySQL database (for users/passwords).
    -How to receive an HTML post in PHP (to retreive data from the fields you were talking about).
    -How to send email in PHP.
     
  5. Slid.

    Slid. I'm a guy.

    Joined:
    Oct 25, 2001
    Messages:
    1,928
    Likes Received:
    0
    Location:
    NH
    If you are really *really* not going far with this then you could skip mySQL altogether (like if you only had 1-2 users say).
     
  6. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    Well, I'd like the ability to have more. Not afraid to learn the mysql interface at all. shouldn't be too hard..

    I do have HTML knowledge, and I grasp PHP and some ASP.. just never put anything together with it.

    I need to learn more about the HTML post in PHP and the PHP sending mail..
     
  7. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    By the way, this is internal use only. Not really for public consumption.
     
  8. Dustro

    Dustro New Member

    Joined:
    Nov 1, 2003
    Messages:
    2,123
    Likes Received:
    0
    Location:
    NC
    sounds pretty simple, a little time and google and you should be gold
     
  9. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
  10. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
    Except that the Doctype claims it's written in XHTML yet there are heavy use of tables. :o
     
  11. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    that's dreamweaver for ya.
     
  12. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
    I don't use dreamweaver, but I've been told it's pretty good at keeping things compliant. :dunno:
     
  13. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    Only true if you use their wizards 100% of the way -- and those are very limited. Otherwise, it's still up to you to write good code, or use proper practices in the WYSIWYG editor. Unfortunatly, most people still draw tables and call it a day.
     
  14. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
    In conclusion, hand writing code still offers and probably will always offer the best control.
     
  15. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    always, obviously
     
  16. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    :dunno::hs:
     
  17. fishbulb

    fishbulb Active Member

    Joined:
    Oct 29, 2001
    Messages:
    6,848
    Likes Received:
    4
    Location:
    md
  18. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    I've got the login page done..

    Now I need to figure out how to accomplish the whole email and output design thing..
     
  19. jlangdale

    jlangdale New Member

    Joined:
    May 21, 2006
    Messages:
    6
    Likes Received:
    0
    Location:
    Montreal, Quebec
    Take a look at drupal CMS. Easy to setup.
     
  20. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    Interesting. I like..

    ..but I was kind of hoping to build this myself..
     

Share This Page