Menu

phpFormGenerator v3.0 demo site

Help
2007-06-14
2013-06-03
<< < 1 .. 11 12 13 14 15 .. 18 > >> (Page 13 of 18)
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-03-31

    ok sorry this is the error i am receiving on line 52 Parse error: syntax error, unexpected T_STRING in /home/sites/proguardssecurity.com/public_html/contact/processor.php on line 52

     
    • TNTEverett

      TNTEverett - 2009-03-31

      Get a copy of this FREE editor and use it when you edit PHP.  THe color highlighted syntax will help you recognize errors more easily. 

      http://hapedit.free.fr/

       
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-03-31

    thank you mate that submitted fine but now i am not receiving any emails ?
    i will also check to see if they where entered into the database
    Cheers For all you have helped me with mate as well

     
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-03-31

    thank you mate i am downloading it now

     
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-03-31

    confirmed i am not receiving the information via email now ?
    sorry mate i dont mean to be a pain would you happen to know what i have done wrong now to stop receiving email notifacations?

     
    • TNTEverett

      TNTEverett - 2009-04-01

      There is no mail() function in your processor file. 

       
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-03-31

    hhm i am also not receiving any inputs to the database either.
    any ideas mate?

     
    • TNTEverett

      TNTEverett - 2009-04-01

      You need to make sure that DB variables are being set properly.  If they are not in the config.inc.php file then you will have to put it in yourself. 

      include("config.inc.php");
      $link = mysql_connect($db_host,$db_user,$db_pass);

       
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-04-01

    thanks i managed to sort out the db problem i inputed the incorrect database information on the test form lol but thank you all the same

    in regards to the form the major problem i have is  what i would like to do is to beable to receive the information into a databse and also have it emailed to two different email addresses
    i copyed some script from another post to enable me to do this but no such luck have i done this correctly ?

    below is my form if not can someone suggest if possible how best if its possible this can be achieved?
    as i am receiving more errores the not
    Below is my processer.php file

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    session_start();
    if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
    // Checkbox handling
    $field_9_opts = $_POST['field_9'][0].",". $_POST['field_9'][1].",". $_POST['field_9'][2].",". $_POST['field_9'][3].",". $_POST['field_9'][4].",". $_POST['field_9'][5].",". $_POST['field_9'][6];

    // Checkbox handling
    $field_10_opts = $_POST['field_10'][0].",". $_POST['field_10'][1].",". $_POST['field_10'][2].",". $_POST['field_10'][3].",". $_POST['field_10'][4].",". $_POST['field_10'][5].",". $_POST['field_10'][6].",". $_POST['field_10'][7];

    // Checkbox handling
    $field_13_opts = $_POST['field_13'][0].",". $_POST['field_13'][1].",". $_POST['field_13'][2].",". $_POST['field_13'][3].",". $_POST['field_13'][4].",". $_POST['field_13'][5].",". $_POST['field_13'][6].",". $_POST['field_13'][7];

    include("config.inc.php");
    $link = mysql_connect($db_host,$db_user,$db_pass);
    if(!$link) die ('Could not connect to database: '.mysql_error());
    mysql_select_db($db_name,$link);
    $query = "INSERT into `".$db_table."` (field_1,field_2,field_3,field_4,field_5,field_6,field_7,field_8,field_9,field_10,field_11,field_12,field_13,field_14,field_15,field_16,field_17) VALUES ('" . $_POST['field_1'] . "','" . $_POST['field_2'] . "','" . $_POST['field_3'] . "','" . $_POST['field_4'] . "','" . $_POST['field_5'] . "','" . $_POST['field_6'] . "','" . $_POST['field_7'] . "','" . $_POST['field_8'] . "','" . $_POST['field_9'] . "','" . $_POST['field_10'] . "','" . $_POST['field_11'] . "','" . $_POST['field_12'] . "','" . $_POST['field_13'] . "','" . $_POST['field_14'] . "','" . $_POST['field_15'] . "','" . $_POST['field_16'] . "','" . $_POST['field_17'] . "')";
    mysql_query($query);
    mysql_close($link);

    mail("wesways@msn.com","Pro-Guards Security - Form submission","Form data:

    // recipient 
    $to = 'Steve <stevekite@hotmail.co.uk>';
    // subject 
    $subject = 'Pro-Guaurds Security Services Application Form
    <info@proguardssecurity.com>' . "\r\n";
    $headers .= 'Bcc: info@proguardssecurity.com'."\r\n";
    $message = "Full Name: " . $_POST['field_1'] . " 
    Date Of Birth: " . $_POST['field_2'] . " 
    Present Address: " . $_POST['field_3'] . " 
    Home Phone Number: " . $_POST['field_4'] . " 
    Mobile Number: " . $_POST['field_5'] . " 
    Email Address: " . $_POST['field_6'] . " 
    Work Experience: " . $_POST['field_7'] . " 
    Right To Work In The UK: " . $_POST['field_8'] . " 
    Availability To Work: " . $field_9_opts . " 
    Job Preferences: " . $field_10_opts . " 
    Hobbies And Interests: " . $_POST['field_11'] . " 
    S.I.A Licence Number : " . $_POST['field_12'] . " 
    S.I.A Licence Type: " . $field_13_opts . " 
    S.I.A Licence Expiry Date: " . $_POST['field_14'] . " 
    Your National Insurance Number: " . $_POST['field_15'] . " 
    Previous Convictions This May not Affect your Chances of a Vacancy: " . $_POST['field_16'] . " 
    Next Of Kin Emergency Details: " . $_POST['field_17'] . "

    powered by phpFormGenerator. 
    "; 

    include("confirm.html");
    }
    else {
    echo "Invalid Captcha String.";
    }

    ?>

    and this is the error i am receiving with this file on submit

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/sites/proguardssecurity.com/public_html/contact/processor.php on line 30

    Parse error: syntax error, unexpected T_STRING in /home/sites/proguardssecurity.com/public_html/contact/processor.php on line 30

    Line 30 is this line

    mail("wesways@msn.com","Pro-Guards Security - Form submission","Form data:

    Thanks in advance to all

     
    • TNTEverett

      TNTEverett - 2009-04-01

      Don't try and form your header as part of the mail function. 

      Follow any one of the good examples here:
      http://www.php.net/mail

       
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-04-01

    Hiya thank you everyone my form started wirking really well both email addresses as far as i know was receiving the email but with one problem and i think it was all being submitted to the database as well.
    the one problem i have is the awnsers where appearing in the subgect of the emails any nothing was appearing in the body?

    and i made some alterations and i now get the following error.

    once i have achieved this set up i will if possible beable to pplace the resulting code and edits so it may be able to assist someone else
    Below is my processer.php file

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    session_start();
    if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
    // Checkbox handling
    $field_9_opts = $_POST['field_9'][0].",". $_POST['field_9'][1].",". $_POST['field_9'][2].",". $_POST['field_9'][3].",". $_POST['field_9'][4].",". $_POST['field_9'][5].",". $_POST['field_9'][6];

    // Checkbox handling
    $field_10_opts = $_POST['field_10'][0].",". $_POST['field_10'][1].",". $_POST['field_10'][2].",". $_POST['field_10'][3].",". $_POST['field_10'][4].",". $_POST['field_10'][5].",". $_POST['field_10'][6].",". $_POST['field_10'][7];

    // Checkbox handling
    $field_13_opts = $_POST['field_13'][0].",". $_POST['field_13'][1].",". $_POST['field_13'][2].",". $_POST['field_13'][3].",". $_POST['field_13'][4].",". $_POST['field_13'][5].",". $_POST['field_13'][6].",". $_POST['field_13'][7];

    include("config.inc.php");
    $link = mysql_connect($db_host,$db_user,$db_pass);
    if(!$link) die ('Could not connect to database: '.mysql_error());
    mysql_select_db($db_name,$link);
    $query = "INSERT into `".$db_table."` (field_1,field_2,field_3,field_4,field_5,field_6,field_7,field_8,field_9,field_10,field_11,field_12,field_13,field_14,field_15,field_16,field_17) VALUES ('" . $_POST['field_1'] . "','" . $_POST['field_2'] . "','" . $_POST['field_3'] . "','" . $_POST['field_4'] . "','" . $_POST['field_5'] . "','" . $_POST['field_6'] . "','" . $_POST['field_7'] . "','" . $_POST['field_8'] . "','" . $_POST['field_9'] . "','" . $_POST['field_10'] . "','" . $_POST['field_11'] . "','" . $_POST['field_12'] . "','" . $_POST['field_13'] . "','" . $_POST['field_14'] . "','" . $_POST['field_15'] . "','" . $_POST['field_16'] . "','" . $_POST['field_17'] . "')";
    mysql_query($query);
    mysql_close($link);

    $Name = "Pro-Guards Security Services Job Application Submittion"; //senders name
    $email = "info@proguardssecurity.com"; //senders e-mail adress
    $recipient = "wesways@msn.com"; //recipient 
    $subject = "Pro-Guards Security Services Job Application Submittion"; //subject
    $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
    $headers .= 'Bcc: stevekite@hotmail.co.uk' . "\r\n";
    mail($recipient, $subject, $header, $headers, $mail_body); //mail command :)"Form data:

    $mail_body = "
    Full Name: " . $_POST['field_1'] . " 
    Date Of Birth: " . $_POST['field_2'] . " 
    Present Address: " . $_POST['field_3'] . " 
    Home Phone Number: " . $_POST['field_4'] . " 
    Mobile Number: " . $_POST['field_5'] . " 
    Email Address: " . $_POST['field_6'] . " 
    Work Experience: " . $_POST['field_7'] . " 
    Right To Work In The UK: " . $_POST['field_8'] . " 
    Availability To Work: " . $field_9_opts . " 
    Job Preferences: " . $field_10_opts . " 
    Hobbies And Interests: " . $_POST['field_11'] . " 
    S.I.A Licence Number : " . $_POST['field_12'] . " 
    S.I.A Licence Type: " . $field_13_opts . " 
    S.I.A Licence Expiry Date: " . $_POST['field_14'] . " 
    Your National Insurance Number: " . $_POST['field_15'] . " 
    Previous Convictions This May not Affect your Chances of a Vacancy: " . $_POST['field_16'] . " 
    Next Of Kin Emergency Details: " . $_POST['field_17'] . "
    "; //mail body

    powered by phpFormGenerator. 
    ";
    include("confirm.html");
    }
    else {
    echo "Invalid Captcha String.";

    Thanks
    Wes

     
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-04-01

    sorry my error message is Parse error: syntax error, unexpected T_STRING in /home/sites/proguardssecurity.com/public_html/contact/processor.php on line 55

    line 55 is

    powered by phpFormGenerator. 
    ";

     
    • TNTEverett

      TNTEverett - 2009-04-01

      Remove this line:

      "; //mail body

       
      • WESLEY WILLIAMS

        WESLEY WILLIAMS - 2009-04-02

        thanks mate worked a treat the form works again but now i am back with the same old problem of not being able to receive the data in the email this is all i get in the email

        From: proguardssecurity.com
        Date: 02/04/2009 01:02:13
        To: wesways@msn.com
        Subject: Pro-Guards Security Services Job Application Submittion
             

        From: Pro-Guards Security Services Job Application Submittion <info@proguardssecurity.com>

        and this is what my processer.php file now looks like

        <?php

        $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

        session_start();
        if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
        // Checkbox handling
        $field_9_opts = $_POST['field_9'][0].",". $_POST['field_9'][1].",". $_POST['field_9'][2].",". $_POST['field_9'][3].",". $_POST['field_9'][4].",". $_POST['field_9'][5].",". $_POST['field_9'][6];

        // Checkbox handling
        $field_10_opts = $_POST['field_10'][0].",". $_POST['field_10'][1].",". $_POST['field_10'][2].",". $_POST['field_10'][3].",". $_POST['field_10'][4].",". $_POST['field_10'][5].",". $_POST['field_10'][6].",". $_POST['field_10'][7];

        // Checkbox handling
        $field_13_opts = $_POST['field_13'][0].",". $_POST['field_13'][1].",". $_POST['field_13'][2].",". $_POST['field_13'][3].",". $_POST['field_13'][4].",". $_POST['field_13'][5].",". $_POST['field_13'][6].",". $_POST['field_13'][7];

        include("config.inc.php");
        $link = mysql_connect($db_host,$db_user,$db_pass);
        if(!$link) die ('Could not connect to database: '.mysql_error());
        mysql_select_db($db_name,$link);
        $query = "INSERT into `".$db_table."` (field_1,field_2,field_3,field_4,field_5,field_6,field_7,field_8,field_9,field_10,field_11,field_12,field_13,field_14,field_15,field_16,field_17) VALUES ('" . $_POST['field_1'] . "','" . $_POST['field_2'] . "','" . $_POST['field_3'] . "','" . $_POST['field_4'] . "','" . $_POST['field_5'] . "','" . $_POST['field_6'] . "','" . $_POST['field_7'] . "','" . $_POST['field_8'] . "','" . $_POST['field_9'] . "','" . $_POST['field_10'] . "','" . $_POST['field_11'] . "','" . $_POST['field_12'] . "','" . $_POST['field_13'] . "','" . $_POST['field_14'] . "','" . $_POST['field_15'] . "','" . $_POST['field_16'] . "','" . $_POST['field_17'] . "')";
        mysql_query($query);
        mysql_close($link);

        $Name = "Pro-Guards Security Services Job Application Submittion"; //senders name
        $email = "info@proguardssecurity.com"; //senders e-mail adress
        $recipient = "wesways@msn.com"; //recipient 
        $subject = "Pro-Guards Security Services Job Application Submittion"; //subject
        $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
        $headers .= 'Bcc: stevekite@hotmail.co.uk' . "\r\n";
        mail($recipient, $subject, $header, $headers, $mail_body); //mail command :)"Form data:

        $mail_body = "
        Full Name: " . $_POST['field_1'] . " 
        Date Of Birth: " . $_POST['field_2'] . " 
        Present Address: " . $_POST['field_3'] . " 
        Home Phone Number: " . $_POST['field_4'] . " 
        Mobile Number: " . $_POST['field_5'] . " 
        Email Address: " . $_POST['field_6'] . " 
        Work Experience: " . $_POST['field_7'] . " 
        Right To Work In The UK: " . $_POST['field_8'] . " 
        Availability To Work: " . $field_9_opts . " 
        Job Preferences: " . $field_10_opts . " 
        Hobbies And Interests: " . $_POST['field_11'] . " 
        S.I.A Licence Number : " . $_POST['field_12'] . " 
        S.I.A Licence Type: " . $field_13_opts . " 
        S.I.A Licence Expiry Date: " . $_POST['field_14'] . " 
        Your National Insurance Number: " . $_POST['field_15'] . " 
        Previous Convictions This May not Affect your Chances of a Vacancy: " . $_POST['field_16'] . " 
        Next Of Kin Emergency Details: " . $_POST['field_17'] . "

        powered by phpFormGenerator.
        ";

        include("confirm.html");
        }
        else {
        echo "Invalid Captcha String.";
        }

        ?>

         
        • TNTEverett

          TNTEverett - 2009-04-02

          What the heck is this?

          mail($recipient, $subject, $header, $headers, $mail_body);

          You have five parameters to the function.  What you should have is:
          mail ($to , $subject , $message , $header);

          Note the location of "$message". 

           
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-04-02

    lol i know this sounds silly mate but i have worked with scripts and coding for years and never been able to get the hang of forms lol
    i really appreciate all the help you have been giving me on this and if there is anything i can do or if you would like paying then please do say
    and i will sort it out
    thank you so much
    Wes

     
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-04-02

    is there a way to send a Bcc as well sorry or am i asking too much lol

     
  • WESLEY WILLIAMS

    WESLEY WILLIAMS - 2009-04-02

    here is my updated version now i get a server error page

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    session_start();
    if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
    // Checkbox handling
    $field_9_opts = $_POST['field_9'][0].",". $_POST['field_9'][1].",". $_POST['field_9'][2].",". $_POST['field_9'][3].",". $_POST['field_9'][4].",". $_POST['field_9'][5].",". $_POST['field_9'][6];

    // Checkbox handling
    $field_10_opts = $_POST['field_10'][0].",". $_POST['field_10'][1].",". $_POST['field_10'][2].",". $_POST['field_10'][3].",". $_POST['field_10'][4].",". $_POST['field_10'][5].",". $_POST['field_10'][6].",". $_POST['field_10'][7];

    // Checkbox handling
    $field_13_opts = $_POST['field_13'][0].",". $_POST['field_13'][1].",". $_POST['field_13'][2].",". $_POST['field_13'][3].",". $_POST['field_13'][4].",". $_POST['field_13'][5].",". $_POST['field_13'][6].",". $_POST['field_13'][7];

    include("config.inc.php");
    $link = mysql_connect($db_host,$db_user,$db_pass);
    if(!$link) die ('Could not connect to database: '.mysql_error());
    mysql_select_db($db_name,$link);
    $query = "INSERT into `".$db_table."` (field_1,field_2,field_3,field_4,field_5,field_6,field_7,field_8,field_9,field_10,field_11,field_12,field_13,field_14,field_15,field_16,field_17) VALUES ('" . $_POST['field_1'] . "','" . $_POST['field_2'] . "','" . $_POST['field_3'] . "','" . $_POST['field_4'] . "','" . $_POST['field_5'] . "','" . $_POST['field_6'] . "','" . $_POST['field_7'] . "','" . $_POST['field_8'] . "','" . $_POST['field_9'] . "','" . $_POST['field_10'] . "','" . $_POST['field_11'] . "','" . $_POST['field_12'] . "','" . $_POST['field_13'] . "','" . $_POST['field_14'] . "','" . $_POST['field_15'] . "','" . $_POST['field_16'] . "','" . $_POST['field_17'] . "')";
    mysql_query($query);
    mysql_close($link);

    $Name = "Pro-Guards Security Services Job Application Submittion"; //senders name
    $email = "info@proguardssecurity.com"; //senders e-mail adress
    $recipient = "wesways@msn.com"; //recipient 
    $subject = "Pro-Guards Security Services Job Application Submittion"; //subject
    $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
    $headers .= 'Bcc: stevekite@hotmail.co.uk' . "\r\n";
    mail ($to , $subject , $message , $header , $headers); //mail command
    $message = "
    Full Name: " . $_POST['field_1'] . " 
    Date Of Birth: " . $_POST['field_2'] . " 
    Present Address: " . $_POST['field_3'] . " 
    Home Phone Number: " . $_POST['field_4'] . " 
    Mobile Number: " . $_POST['field_5'] . " 
    Email Address: " . $_POST['field_6'] . " 
    Work Experience: " . $_POST['field_7'] . " 
    Right To Work In The UK: " . $_POST['field_8'] . " 
    Availability To Work: " . $field_9_opts . " 
    Job Preferences: " . $field_10_opts . " 
    Hobbies And Interests: " . $_POST['field_11'] . " 
    S.I.A Licence Number : " . $_POST['field_12'] . " 
    S.I.A Licence Type: " . $field_13_opts . " 
    S.I.A Licence Expiry Date: " . $_POST['field_14'] . " 
    Your National Insurance Number: " . $_POST['field_15'] . " 
    Previous Convictions This May not Affect your Chances of a Vacancy: " . $_POST['field_16'] . " 
    Next Of Kin Emergency Details: " . $_POST['field_17'] . "

    powered by phpFormGenerator.
    ";

    include("confirm.html");
    }
    else {
    echo "Invalid Captcha String.";
    }

    ?>

    returns

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@proguardssecurity.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

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

    Apache/2 Server at proguardssecurity.com Port 80

     
    • TNTEverett

      TNTEverett - 2009-04-02

      Most of your problems are trivial and could be caught with a simple editor with syntax highlighting. 

      //senders
      name

      This does not work when you have comments spanning more than one line with only one line of comment prefixes like //

      It would work like this
      //senders
      //name

      Try this copy:

      <?php

      $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

      session_start();
      if( ($_SESSION['security_code']==$_POST['security_code']) &&
      (!empty($_POST['security_code'])) ) {

      // Checkbox handling
      $field_9_opts = $_POST['field_9'][0].",". $_POST['field_9'][1].",".
      $_POST['field_9'][2].",". $_POST['field_9'][3].",". $_POST['field_9'][4].",".
      $_POST['field_9'][5].",". $_POST['field_9'][6];

      // Checkbox handling
      $field_10_opts = $_POST['field_10'][0].",". $_POST['field_10'][1].",".
      $_POST['field_10'][2].",". $_POST['field_10'][3].",". $_POST['field_10'][4].",".
      $_POST['field_10'][5].",". $_POST['field_10'][6].",". $_POST['field_10'][7];

      // Checkbox handling
      $field_13_opts = $_POST['field_13'][0].",". $_POST['field_13'][1].",".
      $_POST['field_13'][2].",". $_POST['field_13'][3].",". $_POST['field_13'][4].",".
      $_POST['field_13'][5].",". $_POST['field_13'][6].",". $_POST['field_13'][7];

      include("config.inc.php");
      $link = mysql_connect($db_host,$db_user,$db_pass);
      if(!$link) die ('Could not connect to database: '.mysql_error());
      mysql_select_db($db_name,$link);
      $query = "INSERT into `".$db_table."`
      (field_1,field_2,field_3,field_4,field_5,field_6,field_7,field_8,field_9,field_1
      0,field_11,field_12,field_13,field_14,field_15,field_16,field_17) VALUES ('"
      . $_POST['field_1'] . "','" . $_POST['field_2'] . "','" . $_POST['field_3']
      . "','" . $_POST['field_4'] . "','" . $_POST['field_5'] . "','" . $_POST['field_6']
      . "','" . $_POST['field_7'] . "','" . $_POST['field_8'] . "','" . $_POST['field_9']
      . "','" . $_POST['field_10'] . "','" . $_POST['field_11'] . "','"
      . $_POST['field_12'] . "','" . $_POST['field_13'] . "','" . $_POST['field_14']
      . "','" . $_POST['field_15'] . "','" . $_POST['field_16'] . "','"
      . $_POST['field_17'] . "')";
      mysql_query($query);
      mysql_close($link);

      $Name = "Pro-Guards Security Services Job Application Submittion"; //senders name
      $email = "info@proguardssecurity.com"; //senders e-mail adress
      $recipient = "wesways@msn.com"; //recipient 
      $subject = "Pro-Guards Security Services Job Application Submittion"; //subject

      $message = "
      Full Name: " . $_POST['field_1'] . " 
      Date Of Birth: " . $_POST['field_2'] . " 
      Present Address: " . $_POST['field_3'] . " 
      Home Phone Number: " . $_POST['field_4'] . " 
      Mobile Number: " . $_POST['field_5'] . " 
      Email Address: " . $_POST['field_6'] . " 
      Work Experience: " . $_POST['field_7'] . " 
      Right To Work In The UK: " . $_POST['field_8'] . " 
      Availability To Work: " . $field_9_opts . " 
      Job Preferences: " . $field_10_opts . " 
      Hobbies And Interests: " . $_POST['field_11'] . " 
      S.I.A Licence Number : " . $_POST['field_12'] . " 
      S.I.A Licence Type: " . $field_13_opts . " 
      S.I.A Licence Expiry Date: " . $_POST['field_14'] . " 
      Your National Insurance Number: " . $_POST['field_15'] . " 
      Previous Convictions This May not Affect your Chances of a Vacancy: "
      . $_POST['field_16'] . "
      Next Of Kin Emergency Details: " . $_POST['field_17'] . "

      powered by phpFormGenerator.
      ";

      $header = "To: ".$recipient."\r\n";
      $header .= "From: ". $Name . " <" . $email . ">\r\n";
      $header .= 'Bcc: stevekite@hotmail.co.uk' . "\r\n";
      mail ($recipient , $subject , $message , $header);

      include("confirm.html");
      }
      else {
      echo "Invalid Captcha String.";
      }

      ?>

       
      • WESLEY WILLIAMS

        WESLEY WILLIAMS - 2009-04-02

        thank you mate worked a treat thank you
        the only thing now is for some reason it is not placing the information into my databases as well
        your version worked first time straght away thank you before i uploaded yours it was adding them to the database and now its not is there a way i can correct this mate?

         
  • Rob

    Rob - 2009-04-04

    This has been asked before here, but it wasn't answered.  Can this be used with an existing table?   When I run the install program I get this error message (in not great English): Error! Table not be created.

    How can I make this work with an existing table?

    Thank you

    Rob

     
    • TNTEverett

      TNTEverett - 2009-04-05

      The answer to your question is yes, and it has been answered before many times. 
      MySQL has very specific requirements, most importantly a valid username and password.  Your install script runs as a PHP script and depending on your web site configuration may run with a username and password that is not appropriate for your site.  Sometimes it is helpfull to manually create the table first so that the install script does not need to create the table, but only populate the table fields. 
      Once again, MySQL has many requirements that must be met to be useful.  Without more information on your particular error and your site there is no way that anyone can tell you exactly why you get an error. 

       
  • Lyndon Dunville

    Lyndon Dunville - 2009-06-06

    Hello,

    I have a few questions.  I had installed the form Script, works GREAT in all ways.

    Except for 2.  I'm not much on my codes, but I can usually figure stuff out.  If you could atleast point me in the right direction.

    1.  I'm using the Form with email, I get the Messages through.  It has all the information.  Here's the first problem, I tested it out, sent a .PNG file and Opend my Email recieved the Form, Opened the Picture it worked great.  But when I re did the form, I sent Numerous amounts of different pictures and when ever I open them in my email they all open up to that original picture I sent, I checked my Directory and all the files are their named the same, and also the same picture.  It's as if instead of uploading a file under random numbers or names, it's not overwriting it or anything it seems to be Duplicating the original file in the folder.  So I think what would fix it, is when it saves it saves.      fjkasfdkjpictureblah2009. , If it could be uploaded into the Folder with a random number each time instead of the same number it will fix it.  No matter what  upload it still names it the same as the other file, not allowing it to upload, and seems to copy.   Sorry for the Long Description, just didn't really know how to say it. Hope you can help.

    2.  When I recieve the Emails also, It's from nobody@myserver.com EX: Is there anyway to change the nobody@ part to say Corespond with one o the Form Feilds.  Say You have a Username field, What ever they fill in there will replace the Nobody@ part in your email? 

    Wow, that's a load off my chest, But hope you can help.  And Thanks for the form other then that its' great!

     
    • TNTEverett

      TNTEverett - 2009-06-06

      1.) The form has a method of saving files that uses a date in teh file name.  Unless the date on your server never changes you should get different file names.  You said "all of the files have the same name".  This is not possible.  There can only be one file of the same name.  So what is the real difference?  Are you sending the same file?

      phpFormgenerator Version 2.09c
      $image_part = date("h_i_s")."_".$HTTP_POST_FILES['FileName']['name']

      phpFormgenerator Version 3.0
      $field_3_filename = "file_3_".date("sihdmY").substr($_FILES['field_3']['name']

      2.) Check out the examples at this link for methods of formating the email header.

       
  • Lyndon Dunville

    Lyndon Dunville - 2009-06-08

    Hello Thanks tnteveret1 I've never handled PHP before in my life, until now.  But I figured it out.  I've got the Subject Changed, but Using the Email delivery system are you also able to use a Function to change who it's from.  Right now, It's Always From (Nobody <nobody@srv27.000webhost.com>) I wish to Change this to Correspond with my Field_3.

    Thanks if you can help, Thanks if you can't :D

     
<< < 1 .. 11 12 13 14 15 .. 18 > >> (Page 13 of 18)

Log in to post a comment.