1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP form tutorials?

Discussion in 'PHP' started by NewComputer, Jun 29, 2005.

  1. #1
    I am looking for a nice, easy tutorial to create a form that once submitted would be stored as an email. I have always had someone else make mine, but I think it is time I learn. Is there a nice tutorial out there that explains it piece by piece?
    SEMrush
     
    NewComputer, Jun 29, 2005 IP
    SEMrush
  2. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,978
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #2
    What do you mean when you say stored as an email? Do you mean that the data entered into the form would be sent as an email?
     
    Weirfire, Jun 30, 2005 IP
  3. THT

    THT Peon

    Messages:
    686
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    take a look on webmonkey - theres loads on there!
     
    THT, Jun 30, 2005 IP
  4. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #4
    Ultimately I would like to have the info dumped into a mysql database, but email would be fine (or a .csv or another format).
     
    NewComputer, Jun 30, 2005 IP
  5. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,978
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #5
    So you want the info dumped into a mysql database in email format?
     
    Weirfire, Jun 30, 2005 IP
  6. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #6
    noppid, Jun 30, 2005 IP
  7. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #7
    Weir,

    Not really sure... I have only ever had the forms come in to me via email (as my previous creator of forms had setup). This will be used for real estate and we would like the data to be as manageable as possible (eg. easily converted to as many formats as necessary). Mostly for newsletters and home updates etc...
     
    NewComputer, Jun 30, 2005 IP
  8. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,978
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #8
    So you want to build some kind of content management system?
     
    Weirfire, Jul 1, 2005 IP
  9. rickbkis

    rickbkis Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    One (the most versatile) option is to store the form data in fields in the database, then extract to XML on query. From there you can use XSLT to transform the info into whatever format you want.

    Non-trivial for a newbie. Read lots. Order lots of pizzas.

    The other option, of course, is to extract directly and output to custom translators. Not as versatile, since you have to write your own translators for each type of output you want. And you can't take advantage of outputs already supported by XSLT.

    But, you'll understand the code, better, because you wrote it. Whether anybody else will, is up for grabs. Remember, maintenance is part of coding. Do small test cases and prototypes as much as possible before tackling the real problem.
    Else, you'll likely wind up with an unmaintainable mess.


    rickb
     
    rickbkis, Jul 8, 2005 IP
  10. rickbkis

    rickbkis Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hmm. As I think about it, XSLT might not get you e-mail output. I'd have to check the docs, but it'll get you things like Word, Acrobat, HTML, XHTML, etc.

    Suggest you approach the problem in three stages:
    1. Create the form and get the data into the database.
    2. Create an extractor to get the data. (I'd still extract into XML - there are good tools to access the data from there, and it can be fed to other pieces, easily, like XSLT.)
    3. Output the data how you want it.

    You should find reasonable tutorials on each of these steps.

    Good luck.
    rickb
     
    rickbkis, Jul 8, 2005 IP