Form Customization http://formmail-maker.com/forum/index.php?p=/categories/form-customization/feed.rss Tue, 19 Sep 17 14:45:11 -0400 Form Customization en-CA How to send a brochure download link in the auto-response email? or download a pdf file on-demand? http://formmail-maker.com/forum/index.php?p=/discussion/170/how-to-send-a-brochure-download-link-in-the-auto-response-emails-or-download-a-pdf-file-on-demands Tue, 08 Oct 2013 23:19:01 -0400 admin 170@/forum/index.php?p=/discussions You can probably do it with following steps. See screenshot below for more details.

1) create a drop down with options like this, let's assume the field ID is %field_2%:

- Please Select-=
Brochure 1=brochure1.pdf
Brochure 2=brochure1.pdf
Brochure 3=brochure3.pdf

2) customize your auto-response message, with the the variable %field_2% make up the brochure download link:

Dear %TitleOfSender% %NameOfSender%,

<p>
Thank you for purchasing our product. You can download the brochure with this link: <br>
<a href="http://www.yoursite.com/path/form/%field_2%">Download Brochure</a>

<p>
We will contact you shortly.

<p>
Regards,<br>
Sale Dept.

3) download myform.zip, extract it and upload it to your own website

4) remember to upload all the brochure pdf files to the same folder of your form

5) test your form

Hope it works for you.


]]>
SMTP Setting for AOL http://formmail-maker.com/forum/index.php?p=/discussion/44/smtp-setting-for-aol Fri, 06 Jul 2012 12:06:00 -0400 admin 44@/forum/index.php?p=/discussions A AOL email user shared his SMTP setting for the email form:

SMTP host: smtp.aol.com


SMTP user: your aol email address i.e. aolscreenname@aol.com
 
SMTP password: your aol login password
 
SMTP port: 587
 
SMTP security: None
]]>
How to load a PHP form in Joomla? http://formmail-maker.com/forum/index.php?p=/discussion/24/how-to-load-a-php-form-in-joomlas Wed, 07 Mar 2012 15:18:30 -0500 admin 24@/forum/index.php?p=/discussions I would like to thank Mark (G9 Capital). He is very kind to provide a very detailed instructions. Enjoy!

I needed a Joomla extension to handle a PHP form and the best one I found
is called “Jumi”
Jumi is very simple to download and it can be found at this link http://extensions.joomla.org/extensions/edition/custom-code-in-content/1023

Instructions are:

1) Download the Jumi extension.

2) Open the Jumi program from the list of extensions in your website.

3) You will see two examples, then just click “New” and enter a name for
your form.

4) You can ignore all other fields, simply go to where it says “pathname”
and enter the name of your form, ie websiteformname/form.php

5) Click “Save”

That’s it, your PHP FormMail Generator form should now work flawlessly in
your website. You can see my form at this link http://g9capital.com/index.php?option=com_jumi&fileid=3&Itemid=148

 

The above instructions of course apply to your form only although I am sure
others would work pretty much the same. A very similar method would work for
Joomla and Wordpress sites.

 

I hope this helps and thanks again.

 

Mark
]]>
How to make a popup form using jQuery and ColorBox plugin? http://formmail-maker.com/forum/index.php?p=/discussion/23/how-to-make-a-popup-form-using-jquery-and-colorbox-plugins Sun, 26 Feb 2012 18:54:40 -0500 admin 23@/forum/index.php?p=/discussions New Form Tool: Try new jQuery Bootstrap Form Builder to create beautiful web forms!

It's easy to make a popup contact form looks like this :

image

Try Demo :
Popup Form Demo Link



Here is the source code. All the important parts are highlighted.

<!DOCTYPE html>
<html>
    <head>
        <meta charset='utf-8'/>
        <title>Example : a popup contact form using jQuery and ColorBox plugin </title>

        <link rel="stylesheet" href="http://www.formmail-maker.com/var/demo/jquery-popup-form/colorbox.css" />
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script src="http://www.formmail-maker.com/var/demo/jquery-popup-form/jquery.colorbox-min.js"></script>

        <script>
            $(document).ready(function(){
                $(".iframe").colorbox({iframe:true, fastIframe:false, width:"450px", height:"480px", transition:"fade", scrolling   : false});
            });
        </script>
       
       
        <style>
            #cboxOverlay{ background:#666666; }
        </style>
               
    </head>
   
    <body>
   
        <h4>A Popup Email Form Demonstration</h4>
        To make a popup form is easy. All you need is to make a form at <a href="http://www.formmail-maker.com">formmail-maker.com</a>, then use jQuery and ColorBox plugin to make it pop.
        <p /><p />
        <p><h3>Click here for the popup form demo : <a class='iframe' href="http://www.formmail-maker.com/var/demo/jquery-popup-form/form.php">Contact Us</a></h3></p>



    </body>
</html>
]]>
Translate Title of Sender to German in Email Form http://formmail-maker.com/forum/index.php?p=/discussion/22/translate-title-of-sender-to-german-in-email-form Tue, 18 Oct 2011 14:37:53 -0400 admin 22@/forum/index.php?p=/discussions
<li class='field_block' id='field_0_div'><div class='col_label'>

    <label class='form_field'>Title</label> <label class='form_required' >*</label> </div>

    <div class='col_field'>

    <?php phpfmg_dropdown( 'field_0', "Mr.|Mrs.|Ms.|Miss" );?>

    <div id='field_0_tip' class='instruction'></div>

    </div>

</li>

It can be translated to your own language, like German here :

<li class='field_block' id='field_0_div'><div class='col_label'>
    <label class='form_field'>Titel</label> <label class='form_required' >*</label> </div>
    <div class='col_field'>
    <?php phpfmg_dropdown( 'field_0', "Frau|Herr" );?>
    <div id='field_0_tip' class='instruction'></div>
    </div>
</li>


]]>
How to save form data to MySQL database? http://formmail-maker.com/forum/index.php?p=/discussion/21/how-to-save-form-data-to-mysql-databases Tue, 18 Oct 2011 14:25:27 -0400 admin 21@/forum/index.php?p=/discussions You need to make up sql query based on the form field/value pairs. You can probably do something like this in form.lib.php :

1) manually add "dbfield" name to map the form field name with mysql table field

2) get the query read of name/value pairs

$GLOBALS['form_mail'] = array();
$GLOBALS['form_mail']['field_0'] = array( "name" => "field_0", "text" => "smtp",  "type" => "", "instruction" => "", "required" => "" ) ;
$GLOBALS['form_mail']['field_1'] = array( "name" => "field_1", "dbfield" => "email", "text" => "Email",  "type" => "sender's email", "instruction" => "Your email address", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_2'] = array( "name" => "field_2", "dbfield" => "title", "text" => "Title",  "type" => "titleofsender", "instruction" => "Your title", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_3'] = array( "name" => "field_3", "text" => "Name",  "type" => "sender's name", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_4'] = array( "name" => "field_4", "text" => "Section Break Text Goes Here",  "type" => "sectionbreak", "instruction" => "", "required" => "Not Required" ) ;
$GLOBALS['form_mail']['field_5'] = array( "name" => "field_5", "text" => "Generic Email",  "type" => "generic email", "instruction" => "", "required" => "" ) ;

....

function phpfmg_getSQL(){
    $dbFields = array();
    foreach( $GLOBALS['form_mail'] as $field ){
        if( isset($field["dbfield"]) ){
            $value = phpfmg_field_value( $field[ "name" ] );
            $dbFields[] = "`{$field['dbfield']}` = \"" . mysql_escape_string( $value ) . "\"";
        };
    }
    return join(",", $dbFields);
}

3) after the mail sent, use the above function phpfmg_getSQL() to get the query string to make up a complete insert query, then execute the query to insert the form data to MySQL


]]>
I don't want to use iframe. How can I embed the form directly? http://formmail-maker.com/forum/index.php?p=/discussion/20/i-dont-want-to-use-iframe.-how-can-i-embed-the-form-directlys Fri, 07 Oct 2011 12:19:47 -0400 admin 20@/forum/index.php?p=/discussions
<?php require_once( dirname(__FILE__).'/form.lib.php' ); ?>
<html>
<head>
</head>
<body>

  <div id='header'>
  My site header
  </div>

  <div id="contactForm">
  <?php
  $GLOBALS['formOnly'] = true;
  include('form.php');
  ?>
  </div>

  <div id='footer'>
  My site fotter
  </div>

</body>
</html>

Your contact form will has your own page design and my functional email form.

]]>
How to specific From Name and Email Address for auto-response message? http://formmail-maker.com/forum/index.php?p=/discussion/17/how-to-specific-from-name-and-email-address-for-auto-response-messages Mon, 26 Sep 2011 18:44:54 -0400 admin 17@/forum/index.php?p=/discussions
1) click option : Customize email & auto-response message
2) then click option : More auto-response options

See screen shot below for details :


image


or edit form.lib.php directly, for example :



// for auto-response email

define( 'PHPFMG_YOUR_NAME' , 'Sales' ); // name of auto-response mail address

define( 'PHPFMG_RETURN_EMAIL' , "sales@yourwebsite.com" ); 



]]>
Knowing emails sent by which email form page using variables %FormPageLink% and %HTTP_REFERER% http://formmail-maker.com/forum/index.php?p=/discussion/12/knowing-emails-sent-by-which-email-form-page-using-variables-formpagelink-and-http_referer Tue, 20 Sep 2011 12:57:22 -0400 admin 12@/forum/index.php?p=/discussions Question:

I have a little question: can I put at the subject form a code so that when I receive a message from my website, helps me know in which page is at that moment the user? For example: "Offer request for the product located at this page: ...(refurl)..."
I mention that I use this form in several different pages and I need to know from which page it comes.

Thank you in advance!

Answer:

There are variables for email subject and body content. Here is the list of all the variables you can use :

'%NameOfSender%'
'%FirstNameOfSender%'
'%LastNameOfSender%'
'%EmailOfSender%'
'%TitleOfSender%'
'%DataOfForm%'
'%IP%'
'%Date%'
'%Time%'
'%HTTP_HOST%'
'%FormPageLink%'
'%HTTP_REFERER%'
'%AutoID%'

In your case, please use '%HTTP_HOST%', %FormPageLink%, and %HTTP_REFERER% as need. See following screen shot for details :


image]]>
Use web form to send emails to CC or BCC based on the input value of form field http://formmail-maker.com/forum/index.php?p=/discussion/11/use-web-form-to-send-emails-to-cc-or-bcc-based-on-the-input-value-of-form-field Thu, 15 Sep 2011 12:43:23 -0400 admin 11@/forum/index.php?p=/discussions Question :

I've been using your PHP Form Creator very successfully for several months now on many projects.



After implementing my latest form, it was brought to my attention that
it would be useful when filling out the form to be able to CC 1 or more
people when the form is completed.



I setup the generic email field, but I don't know how to convert it to the PHPFMG_CC.



How do I this and where do I put the code?

Answer :

Instead of using predefined value for email's CC or BCC field, the web form can use a dynamic field value input by user. Here are the steps :
1) get the field name or field ID of the field from form.php, let's use "field_1" as example.

2) then change one line code in form.lib.php as following :
    define( 'PHPFMG_CC' , phpfmg_field_value('field_1') );

3) upload the form.lib.php back to your website to test the form mail

See the screen shot below for details:


image



For the dynamic email TO field, please read here : Can a form send email to a different email address depends on dropdown options?]]>
How to change the auto generated reference number for the email form and the form data records? http://formmail-maker.com/forum/index.php?p=/discussion/10/how-to-change-the-auto-generated-reference-number-for-the-email-form-and-the-form-data-recordss Fri, 01 Apr 2011 15:54:31 -0400 admin 10@/forum/index.php?p=/discussions
function phpfmg_getRecordID(){
    if( !isset($GLOBALS['RecordID']) ){
        $GLOBALS['RecordID'] = date("Ymd") . '-'.  substr( md5(uniqid(rand(), true)), 0,4 );
    };
    return $GLOBALS['RecordID'];
}

You can change the reference number by replacing the highlighted code above with your own code.

If you only want to change the auto generated number for the email message. You can change it at the following code :

    // ... skip ...

    $RecordID  = phpfmg_getRecordID();

    // ... skip ...


    $_fields = array(
        '%NameOfSender%' => $fromName,
        '%FirstNameOfSender%' => $firstName,
        '%LastNameOfSender%' => $lastName,
        '%EmailOfSender%' => $from,
        '%TitleOfSender%' => $titleOfSender,
        '%DataOfForm%'   => $content,
        '%IP%'   => $_SERVER['REMOTE_ADDR'],
        '%Date%'   => date("Y-m-d"),
        '%Time%'   => date("H:i:s"),
        '%AutoID%' => $RecordID,
    );

The $_fields variable is only for the email message, not for the form data records. You can also add your own new variables to here, then use them to your email message template. For example, you want to add a new variable %MyWebSite% like this :

    $_fields = array(

   '%NameOfSender%' => $fromName,

   '%FirstNameOfSender%' => $firstName,

   '%LastNameOfSender%' => $lastName,

   '%EmailOfSender%' => $from,

   '%TitleOfSender%' => $titleOfSender,

   '%DataOfForm%'   => $content,

   '%IP%'   => $_SERVER['REMOTE_ADDR'],

   '%Date%'   => date("Y-m-d"),

   '%Time%'   => date("H:i:s"),

   '%AutoID%' => $RecordID,

   "%MyWebSite%" => "http://" . $_SERVER['HTTP_HOST'],
    );



Then use the variable for the email template :

Dear %TitleOfSender% %NameOfSender%,

Thank you for purchasing our product. Here is the copy of your order:
%DataOfForm%

We will contact you shortly.

Regards,
Sale Dept.

IP: %IP%
Date: %Date%
Time: %Time%
Reference ID: %AutoID%
My website address : %MyWebSite%

The email message will be replaced with the value you defined above.

]]>
Can a form send email to a different email address depends on dropdown options? http://formmail-maker.com/forum/index.php?p=/discussion/9/can-a-form-send-email-to-a-different-email-address-depends-on-dropdown-optionss Sat, 26 Mar 2011 19:44:12 -0400 admin 9@/forum/index.php?p=/discussions 1) create a normal dropdown field with options, e.g. : Sales, Support, Customer Service
2) then download the form php files, edit the form.lib.php as the following,  just before the  'PHPFMG_TO' line :



function get_to(){
    $to = array(
        'Sales' => 'a@sympatico.ca',
        'Support' => 'b@gmail.com',


        'Customer Service' => 'c@hotmail.com',
    );
    $default = 'b@gmail.com';
    return isset( $_POST['field_?'] ) && !empty($to[ $_POST['field_?'] ])  ? $to[ $_POST['field_?'] ]: $default;


  
}

define( 'PHPFMG_TO' , get_to() );

please replace the field_? with the real field name. In my case, I got the field name field_2 from the form.lib.php :


# --- Array of Form Elements ---
$GLOBALS['form_mail'] = array();
$GLOBALS['form_mail']['field_0'] = array( "name" => "field_0", "text" => "Your Name",  "type" => "sender's name", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_1'] = array( "name" => "field_1", "text" => "EMail",  "type" => "sender's email", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_2'] = array( "name" => "field_2", "text" => "Department You Want to Contact",  "type" => "select", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_3'] = array( "name" => "field_3", "text" => "Message",  "type" => "textarea", "instruction" => "", "required" => "Required" ) ;

See screen shot below:
image
]]>
How to use dependent drop down boxes values to make a dynamic email subject line? http://formmail-maker.com/forum/index.php?p=/discussion/8/how-to-use-dependent-drop-down-boxes-values-to-make-a-dynamic-email-subject-lines Tue, 22 Mar 2011 16:47:25 -0400 admin 8@/forum/index.php?p=/discussions From User:

I'm trying to figure out a way to make the Subject of the email be dependent upon a couple of dependent drop down boxes.

So that I can have it generate a different subject based on what drop down is selected.

For example the way i need to use it is where the user picks a contest. So currently there are two contests going on. contest A is for 'Sucker Punch' and contest B is for 'Source Code'. Those are the two main drop box selections. Then Under Contest A there are selections 'Tampa' and 'Miami'. Under contest B there are selections 'Miami', 'Orlando', 'Jacksonville', 'West Palm Beach', and 'Tampa'. So I want the email that is generated upon entering the contest to have a subject of "Sucker Punch - Miami" or "Source Code - Orlando" depending on what the user selects.

Do you know an easy way to patch that into the existing code?


Answer:

Yes. You can do it without any "patch". This is a built-in feature in the php email form script you downloaded. All the form fields' value can be used for the email you received and the auto-response email for the user. The fields' value will be passed to the email subject line and the email body. So you complete customize the email message and subject line.

Here are the steps :
1) get the field name of the dependent dropdown by "View Source" of the form script. so in my case, the "field_4_0" and "field_4_1" are the field names of the dropdowns

image

2) use variable of "%field_4_0" and "%field_4_1%" for the email subject line or the email body as you need


image

3) then regenerate the form to test the email, here is the email I got from this email example


image]]>
How to display Radio and Checkbox options at the same line? http://formmail-maker.com/forum/index.php?p=/discussion/6/how-to-display-radio-and-checkbox-options-at-the-same-lines Thu, 10 Mar 2011 17:33:27 -0500 admin 6@/forum/index.php?p=/discussions From User:

I have a list of 5 check boxes. They are currently displayed one per line, and I want them to be in a row across the page. Is this an easy fix?

Answer:

Yes. You can just use one line of css to hide the <br> tags. For example, you have a checkbox field like this :

<li class='field_block' id='field_8_div'><div class='col_label'>
    <label class='form_field'>Checkboxes</label> <label class='form_required' >&nbsp;</label> </div>
    <div class='col_field'>
    <?php phpfmg_checkboxes( 'field_8', "Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday" );?>
    <div id='field_8_tip' class='instruction'></div>
    </div>
</li>

You can edit css in the form.php, just add the following css :

#field_8_div br{
    display:none;
}

It will do the trick. See the screenshot here :

image]]>
How to change Year dropdown with dynamic future year for the email form? http://formmail-maker.com/forum/index.php?p=/discussion/5/how-to-change-year-dropdown-with-dynamic-future-year-for-the-email-forms Thu, 10 Mar 2011 16:28:25 -0500 admin 5@/forum/index.php?p=/discussions Question From User:

One last question, when I add a date section. How do I make it add years instead of subtract? I changed the -100 to +100 but then then nothing shows up in the drop down except the yyyy.

Answer:

You can edit the form.php as the following
highlight to the date field :

<li class='field_block' id='field_0_div'><div class='col_label'>
    <label class='form_field'>From</
label> <label class='form_required' >&nbsp;</label> </div>
    <div class='col_field'>
    <?php
selectList( "field_0_MM", $_POST["field_0_MM"], 1, 12, "MM", $style ) ;
selectList( "field_0_DD", $_POST["field_0_DD"], 1, 31, "DD", $style ) ;
selectList( "field_0_YYYY", $_POST["field_0_YYYY"], date("Y"), date("Y")+2, "YYYY", $style ) ;
?>

The date("Y") means current year which is 2010, the date("Y")+2 means the next 2 years which is 2012. When the year 2011 comes, the drop down will be 2011 to 2013.
]]>
How to display Date dropdown in German format in the PHP form? http://formmail-maker.com/forum/index.php?p=/discussion/4/how-to-display-date-dropdown-in-german-format-in-the-php-forms Thu, 10 Mar 2011 16:17:19 -0500 admin 4@/forum/index.php?p=/discussions From User:

First of all: fantastic feature! After searching the web for hours I was glad to find (almost) exactly what I need. Except for the following: I need to change the dropdown menu for the date. Required are dates in the future. I tried to adjust the form.php file where the php-code is inserted - without success. Also I would like to put another date format (TT.MM.JJJJ) and the according labels in the form as the website is in German. I would be very glad if you could help me with that.

Answer:

You need to change 2 things. One is to display the date in German format TT.MM.JJJJ; The other is to change the year dropdown to the future years.

The following code is from your attached php form file.  You can change the the following code :

change this :

<li class='field_block' id='field_2_div'><div class='col_label'>
    <label class='form_field'>Baubeginn</label> <label class='form_required' >&nbsp;</label> </div>
    <div class='col_field'>
    <?php
selectList( "field_2_MM", $_POST["field_2_MM"], 1, 12, "MM", $style ) ;
selectList( "field_2_DD", $_POST["field_2_DD"], 1, 31, "DD", $style ) ;
selectList( "field_2_YYYY", $_POST["field_2_YYYY"], date("Y")-100, date("Y"), "YYYY", $style ) ;
?>

    <div id='field_2_tip' class='instruction'></div>
    </div>
</li>


to this :

<li class='field_block' id='field_2_div'><div class='col_label'>
    <label class='form_field'>Baubeginn</label> <label class='form_required' >&nbsp;</label> </div>
    <div class='col_field'>
    <?php
selectList( "field_2_DD", $_POST["field_2_DD"], 1, 31, "TT", $style ) ;
selectList( "field_2_MM", $_POST["field_2_MM"], 1, 12, "MM", $style ) ;
selectList( "field_2_YYYY", $_POST["field_2_YYYY"], date("Y"), date("Y")+10, "JJJJ", $style ) ;
?>

    <div id='field_2_tip' class='instruction'></div>
    </div>
</li>

The date("Y") means current year which is 2010, the date("Y")+10 means the next 10 years which is 2021. When the next year 2012 comes, the drop down options will be 2012 to 2022.

The dropdown looks like the screen shot here :



image]]>
Variables for Email Subject and Message http://formmail-maker.com/forum/index.php?p=/discussion/2/variables-for-email-subject-and-message Tue, 08 Mar 2011 23:26:10 -0500 admin 2@/forum/index.php?p=/discussions Question:

Implementation and use of the generator was childsplay! Very
awesome generator, extremely useful if you need a form and need it fast,
therefore cofffee + i will be recommending this to friends.

In terms of feedback, the only thing that i somewhat missed is an option to put form variables in the mail's subject line.
For
example i just used your generator to generate an e-mail form for
people to fill out if they are going to be at a certain student party. 

It would be nice if you could somehow have; #somevariable# #someothervariable# with student number #yetanothervariable# would like to be at the party!

Greetings,


Kevin


Answer
:

All the form field values can be used for email subject line and body of the email message, both for the email you receive and the auto-response email.

The format of the field name is field_N. The N starts from 0. For example, you have 3 fields in the form,  the field names in the form will be field_0, field_1, field_2. If you want to control every field value in the email message, you can use %field_N% format. The %field_N% will be replaced with its value when the form submitted.

See screen shot below for details :

image


See How to customize email message in the field level? for more.

]]>
How to add HTML tags to form field label? http://formmail-maker.com/forum/index.php?p=/discussion/1/how-to-add-html-tags-to-form-field-labels Sun, 06 Mar 2011 20:14:37 -0500 admin 1@/forum/index.php?p=/discussions From User:
How can I (as in the image, highlighted in yellow) place a url-hyperlink in the checkbox-text? The usecase is "accept terms & conditions", as the screen shot below:
image




Answer :
The email form generator allows html tags for form field labels. Html tags are not allowed in the options text for field checkbox, radio button, and drop down at the moment ( Mar 6, 2011 ). In your case, the "accept terms & conditions" has to be placed in the form label. You can place the html tags for the form field like this :

Please accept  <a href="term.html" style="background-color: yellow;">terms & conditios</a>

See screen shot for details. Hope it works for you.
image


image]]>