Need help creating a custop email contact form

Discussion in 'PHP' started by e-ignite, Apr 3, 2007.

  1. #1
    Hi all,

    I need a complex php form for my hosting website. It needs to submit the contents to an email address I will specify in a PM if you're interested in helping me out with this. I'm completely useless at PHP, so I don't know if the following is even possible, but any help would be appreciated. I would like the form to show the following:

    Name: <text input>
    Email Address: <text input>
    Type of Enquiry: <drop-down box>

    The "Type of Enquiry" drop-down box should have the following options:
    • General Enquiry
    • Request a Quote
    • Report Abuse

    When the user selects "General Enquiry", there should be a plain input text box with multiple lines.


    When the user selects "Request a Quote", there should be the following fields available:
    Your Organisation Type <drop down with following options>
    • Personal
    • Charity / Not-For-Profit Organisation
    • Business
    Disk Space <text input field (one line)>
    Bandwidth <text input field (one line)>
    Email and FTP Accounts <text input field (one line)>
    Subdomains <text input field (one line)>
    MySQL Databases <text input field (one line)>

    Next to the "MySQL Databases" text box, there should be text saying "If unsure, type '?'"

    Other Comments / Requirements <multi-line text input field>


    When the user selects "Report Abuse", there should be the following fields available:
    Site Causing Concern <single line text input field>
    Details of Concern <multiple line text input field>


    When the form is submitted, I'd like the email to have the appropriate subject from General Enquiry, Request a Quote, Report Abuse (the first drop-down box) and I would like the sender's IP address to be sent as well.

    Please let me know if this is possible. I'd prefer this in php, but if it is only possible using Flash then I would possibly implement that. I would need some help getting that coded though since I don't have access to Flash at all.

    As I said, I am pretty much useless at php - I can get the basics of a PHP contact form, but the showing/hiding of options (if its even possible) is beyond me completely!
     
    e-ignite, Apr 3, 2007 IP
  2. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Seems it's a bit big job, however it's possible to do in php. I can help you about developing the contact form. Contact through pm (or using my yahoo ID) if you still need the solution.
     
    srobona, Apr 3, 2007 IP
  3. kthnx

    kthnx Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I could design that system for you, would you be willing to pay for it? Can get you a quote if you're interested, prefer contact thru 47.46.45 [at] gmail [dot] com.
    Cheers,
    -Sam
     
    kthnx, Apr 4, 2007 IP
  4. e-ignite

    e-ignite Guest

    Messages:
    43
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wouldn't necessarily have a problem paying for it. I'm trying to work on the php form parts myself at the moment - I'll see how I get on.

    Would it be possible to show/hide the text boxes based on the drop-down menu using php alone? Or would that need javascript to be added to the form as well?

    I'll need to include a message when the form is submitted - either "successful" or "failed... please check form and retry". What is the best way to deal with this? Would you suggest simply forwarding the users to another html page, or would a javascript "ok" box be better?

    (oh, and PS: Just noticed a major typo! :eek: Naturally, by "custop" I mean "custom")
     
    e-ignite, Apr 4, 2007 IP
  5. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #5
    Javascript is a better solution i think, since php is a server-side language and if you use php to show/hide the text boxes, it will reload the whole page.


    Both ways are fine, depends which one is preferable to you.
     
    srobona, Apr 4, 2007 IP
  6. kthnx

    kthnx Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Second Scrobona on both of the above. Hope it works out for you, drop me a mail if you decide it's too difficult.
     
    kthnx, Apr 4, 2007 IP
  7. e-ignite

    e-ignite Guest

    Messages:
    43
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok, thanks for the input all. I'll see how far I get with it... I'm guessing the more coding I manage to do myself, the less expensive it'll be to get it doing something fancy! I'll let you know if I need some more help. :)
     
    e-ignite, Apr 4, 2007 IP
  8. Felu

    Felu Peon

    Messages:
    1,680
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I can help you with this at very low price. PM me for details :).
     
    Felu, Apr 4, 2007 IP
  9. proinet

    proinet Peon

    Messages:
    82
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    This isn't very hard to do at all. If you are going to try it yourself, you might try this php script as the mailer:
    http://www.tectite.com/formmailpage.php

    It's free, I use it a lot. It's well documented.

    Good luck!
     
    proinet, Apr 4, 2007 IP
  10. e-ignite

    e-ignite Guest

    Messages:
    43
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    e-ignite, Apr 8, 2007 IP