Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jan 2005
    Location
    Sheffiels U.K
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question FormMailer help Please

    I am a little lost on these instructions.

    Below is the php:General Variables
    $check_referrer="no";
    $referring_domains="http://domain.com/,http://www.domain.com/,http://subdomain.domain.com/";

    // Default Error and Success Page Variables
    $error_page_title="Error - Missed Fields";
    $error_page_text="Please use your browser's back button to return to the form and complete the required fields.";
    $thanks_page_title="Message Sent";
    $thanks_page_text="Thank you for your inquiry";

    // options to use if hidden field "config" has a value of 0
    // recipient info
    $charset[0]="iso-8859-1";
    $tomail[0]="";
    $cc_tomail[0]="";
    $bcc_tomail[0]="";
    // Mail contents config
    $subject[0]="Subject of Email";
    $reply_to_field[0]="Email";
    $reply_to_name[0]="Name";
    $required_fields[0]="Name,Comments";
    $required_email_fields[0]="Email";
    $attachment_fields[0]="";
    $return_ip[0]="yes";
    $mail_intro[0]="The following are form results from your web site:";
    $mail_fields[0]="Name,Email,Comments";
    $mail_type[0]="text";
    $mail_priority[0]="1";
    // Send back to sender config
    $send_copy[0]="no";
    $send_copy_format[0]="vert_table";
    $send_copy_fields[0]="Name,Comments";
    $send_copy_attachment_fields[0]="";
    $copy_subject[0]="Subject of Copy Email";
    $copy_intro[0]="Thanks for your inquiry, the following message has been delivered.";
    $copy_from[0]="noreply@yourdomain.com";
    $copy_tomail_field[0]="Email";
    // Result options
    $header[0]="";
    $footer[0]="";
    $error_page[0]="";
    $thanks_page[0]="";

    // options to use if hidden field "config" has a value of 1
    // recipient info
    $charset[1]="";
    $tomail[1]="";
    $cc_tomail[1]="";
    $bcc_tomail[1]="";
    // Mail contents config
    $subject[1]="";
    $reply_to_field[1]="";
    $reply_to_name[1]="";
    $required_fields[1]="";
    $required_email_fields[1]="";
    $attachment_fields[1]="";
    $return_ip[1]="";
    $mail_intro[1]="";
    $mail_fields[1]="";
    $mail_type[1]="";
    $mail_priority[1]="";
    // Send back to sender config
    $send_copy[1]="";
    $send_copy_format[1]="";
    $send_copy_fields[1]="";
    $send_copy_attachment_fields[1]="";
    $copy_subject[1]="";
    $copy_intro[1]="";
    $copy_from[1]="";
    $copy_tomail_field[1]="";
    // Result options
    $header[1]="";
    $footer[1]="";
    $error_page[1]="";
    $thanks_page[1]="";
    Ok what I want to do is add fields but not sure on where or how things go.

    Here are the instrustions...
    <select name="config" id="config">(Where does this go?)
    <option value="9">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;------ Select agent -------</option>
    <option value="0">fred blogs - Broker / Owner</option>
    <option value="1">Mr Bean - Office Manager</option>
    <option value="2">A_team- Development</option>
    <option value="3">Bee Gees - Project Manager</option>
    <option value="4">Elvise- Listings / Sales</option>
    <option value="5">Mr diy - Listings / Sales</option>
    <option value="6">Mr Deck - Project Manager</option>
    <option value="7">Blong Girl - Project Manager</option>
    <option value="8">Red head - Project Manager</option>
    <option value="9">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------</option>
    <option value="9">General Inquiry - Myweb site</option>
    </select>

    More Instructions from the help file.
    It is possible to have a selectable recipient list by making your config field a select type form field like so:
    <select name="config">
    <option value="0">Sales</option>
    <option value="1">Support</option>
    <option value="2">Marketing</option>
    </select>
    which makes the config value variable upon the choice of the user.

    Any help appriciated thank you.
    New Handle with care :)
    See my site free stuff on the way

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    What do you mean you want to add fields?
    All you posted was the stuff for config. Did you want to know how to add more config options per that select?
    Because all you need to do for that is copy/paste the code for config[1], change the index to match your select index (config[2], config[3], etc), and change the data as desired.

    The option values in the select correspond to the array index, from what I can tell here. Either that or the position in the select element (the options array index). I'm not sure b/c right now, they are the same thing. The options[0] value is 0, options[1] value is 1, and so on. If you keep that up, it won't even matter.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    New Coder
    Join Date
    Jan 2005
    Location
    Sheffiels U.K
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I guess I did'nt give a good example? ok here is a link to the example I have seen Here

    As you can see the dropdown menu selecs the service's you want.
    so I guess I need to know where:
    <select name="config">
    <option value="0">Sales</option>
    <option value="1">Support</option>
    <option value="2">Marketing</option>
    </select>
    and where/how the email address go in the script. I am new at this once i see an example then i'll get it right from there I hope lol

    Take care Pat
    New Handle with care :)
    See my site free stuff on the way

  • #4
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Okay, view the html source of that page and look at the form.
    See this?
    <input TYPE=HIDDEN name="config" value="0">

    Replace that with the select named config instead.

    Does that help?

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #5
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,845
    Thanks
    21
    Thanked 157 Times in 148 Posts
    If you're sending e-mails, consider using PHPMailer instead.....

    It's very easy to use....
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  • #6
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Ooh, neat.

    /me puts it in her list of neat things

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #7
    New Coder
    Join Date
    Jan 2005
    Location
    Sheffiels U.K
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you guys I'll have a look at both and see what I come up with. Any ideas on a locked area? I have a program but not happy with it, I need a Login for members only with mailing lisy iof poaaible? I don'd mind paying a few quid (£s for none brits)

    Any help appriciated.

    KInd regards Patrick
    New Handle with care :)
    See my site free stuff on the way


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •