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!
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.
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
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! Naturally, by "custop" I mean "custom")
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.
Second Scrobona on both of the above. Hope it works out for you, drop me a mail if you decide it's too difficult.
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.
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!
I managed to get some help and finally have the form working (http://www.iwhs.net/contact_us.php if anyone's interested). Thanks for all the offers of help!