We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

I need a Complex Form Builder for my Website

Hi

I'm looking for a Form Builder for my website/blog.

I'm not after the basic contact forms or feedback forms you can download but mine is pretty complex.

The form should allow the user to enter details etc BUT upon submitting, it should email the form. The email address will be dependant on what 'dept' they have selected on the form.

Example

If J Bloggs has selected dept CASH on the form, the form should be emailed to cash@example.com.

If J Bloggs has selected dept PAYon the form, the form should be emailed to pay@example.com.

etc etc

Is this possible? and has anyone come across anything like this before? (ASP, PHP to standard HTML i'm thinking...)

Thanks

Comments

  • trcooke
    trcooke Posts: 309 Forumite
    This is possible of course but I think you'll struggle to find a 'form builder' to do it as it's pretty specific to your requirements. You'd have to write it yourself using PHP and the mail() method.
  • jaydeeuk1
    jaydeeuk1 Posts: 7,714 Forumite
    Debt-free and Proud!
    Or ASP using CDO or something...

    Have a html form with text boxes, and a drop down list for departments, where the value is the email address.....

    Form...
    ..
    ..
    ..
    <select name="dept">
    <option value="cash@example.com">Cash</option>
    <option value="pay@example.com">Pay</option>
    </select>
    ..
    ..
    ..


    ASP



    <%
    dim emailserver
    emailserver="yourmailserver"
    dim shc, cdoConfig, cdoMessage, sch
    sch = "http://schemas.microsoft.com/cdo/configuration/&quot;
    Set cdoConfig = CreateObject("CDO.Configuration")
    With cdoConfig.Fields
    .Item(sch & "sendusing") = 2
    .Item(sch & "smtpserver") = emailserver
    .update
    End With
    Set cdoMessage = CreateObject("CDO.Message")
    With cdoMessage
    Set .Configuration = cdoConfig
    .From = request.Form("email") ' the users' email address captured from the form
    .To = request.Form("dept")
    .Subject = "Test"
    .HTMLBody = "<p>Test</p>"
    .Send
    End With
    Set cdoMessage = Nothing
    Set cdoConfig = Nothing
    %>

    Jobs a good'n.
  • Or in PHP it goes something like:

    Form...
    ..
    ..
    ..
    <select name="dept">
    <option value="cash@example.com">Cash</option>
    <option value="pay@example.com">Pay</option>
    </select>
    ..
    ..
    ..


    PHP

    <?
    $recipient = $_REQUEST;
    $subject = "Email subject";
    $message = "The email you wish to send";
    $header = "From: Joe Bloggs <joe@bloggs.com>\r\n";

    mail($recipient, $subject, $message, $header);

    ?>
  • yus786
    yus786 Posts: 676 Forumite
    Part of the Furniture 100 Posts Name Dropper Combo Breaker
    Thanks all but unfortunately i don't have any programming/scripting skills, hence looking for a form builder.

    I can use Dreamweaver and create the necessary fields. Then should i use PHP or ASP

    I guess i can learn but which one should i go for?

    Ta
  • jaydeeuk1
    jaydeeuk1 Posts: 7,714 Forumite
    Debt-free and Proud!
    Up to you, can be achieved using php or asp.net / asp (such as vbscript). One thing to consider is where you are hosting this. For example, ASP requires a windows server or at least windows with IIS of some flavour for it to work.

    Even if you had some sort of form builder, you would probably need to do some tweaking yourself.
  • Marley06
    Marley06 Posts: 19 Forumite
    Hey yus786,
    If you're still looking for a solution, i could build it for you?

    I run a small webdesign/coding/hosting business and have the exact thing you're after?
    (example here: http://boltblueweb.co.uk/contact/) - each department goes to a different email.

    £5 one off, coded in PHP. PM me if your interested,

    Lynden
  • yus786
    yus786 Posts: 676 Forumite
    Part of the Furniture 100 Posts Name Dropper Combo Breaker
    @Marley06 - have PM'd you
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.1K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 603K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.