Announcement

Collapse
No announcement yet.

Forms to drag information to me.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Forms to drag information to me.

    Have put a site together using BlueVoda and I need some assistance on forms. I can sort out a form to get information by mail, my problem is as follows.

    Can I format a form using the browse feature to attach the browsed document to the mail coming back to me.


    The address for my site is www.dksolutions.info/candidateindex.html and the area giving me problems is in uploading Jobs and Uploading CVs. Both forms are working but neither is attaching the browsed documents.

    Help
    Confused in Dublin

  • #2
    Re: Forms to drag information to me.

    Originally posted by Confused in Dublin
    Have put a site together using BlueVoda and I need some assistance on forms. I can sort out a form to get information by mail, my problem is as follows.

    Can I format a form using the browse feature to attach the browsed document to the mail coming back to me.


    The address for my site is www.dksolutions.info/candidateindex.html and the area giving me problems is in uploading Jobs and Uploading CVs. Both forms are working but neither is attaching the browsed documents.

    Help
    Confused in Dublin
    You can do what you want: have a look at : http://www.vodahost.com/vodatalk/for...html#post11943

    post # 3. Feel free to try the form and look at all the auxiliary pages.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment


    • #3
      Re: Forms to drag information to me.

      Thanks again Naval Design. I,m sure I will be back with more Questions later. Your help has been first class.

      DaveK
      Confused in Dublin

      Comment


      • #4
        Re: Forms to drag information to me.

        Originally posted by navaldesign
        You can do what you want: have a look at : http://www.vodahost.com/vodatalk/for...html#post11943

        post # 3. Feel free to try the form and look at all the auxiliary pages.
        Had a look at that script, looks very scary. Also had a look at the page on your site it relates to. The bit I am trying to replocate is the attachment field. Should I use the whole script???
        and not use the PHP (upload_cv.php) (upload_jobs.php) pages I have uploaded to my site.

        DaveK
        Confused in Dublin

        Comment


        • #5
          Re: Forms to drag information to me.

          Originally posted by navaldesign
          You can do what you want: have a look at : http://www.vodahost.com/vodatalk/for...html#post11943

          post # 3. Feel free to try the form and look at all the auxiliary pages.
          Hi Navel Design
          Noticed you where on-line. I tried using your script but there are so many variables Im not sure where to start. Must I use the script to match with my field names only?? (And delete others). I did attempt using a script from hot scripts as follows

          // email for send submitted forms //////////////////////////////////////////
          // if empty, use value from form ('send_to' field)
          $send_to = "YOUR NAME <
          you@youremail.com>";
          // set $send_cc address if you need copy of mail to other addresses
          // for example: $send_cc = array(
          'friend1@ccc.cc', 'friend2@ccc.cc');
          //
          $send_cc = array();

          // Subject. if empty, use value from form ('subject' field)
          $subject = "";

          // Allowed Referres. Should be empty or list of domains
          $referrers = array();

          // Attachments
          $attachment_enabled = 1;

          ////// Database - write CSV file with data of submitted forms //////////////
          $database_enabled = 0;
          $database_file = 'email.csv';

          // Fields to collect
          // $database_fields = '*' - mean all fields, as in form
          // $database_fields = array('from', 'subject') - only 'from', 'subject' fields
          $database_fields = '*';

          ////// Redirect user after submitting form
          $redirect_url = 'http://cgi-central.net';

          ////// Auto-Responder
          ////// You can substitute any of form fields in response by using
          ////// %field_name% in response text.
          //////
          $autoresponder_enabled = 1;
          $autoresponder_from = $send_to;
          $autoresponder_subject = "%subject% (autoresponse)";
          $autoresponder_message = <<<MSG
          Hi %name_from%,

          Thank you for submitting the form. We will contact you shortly.
          --
          MSG;

          /************************************************** *************************/
          function do_formmail(){
          global $autoresponder_enabled, $database_enabled;
          $form = get_form_data();
          $errors = check_form($form);
          if ($errors) {
          display_errors($errors);
          return;
          }
          send_mail($form);
          if ($autoresponder_enabled)
          auto_respond($form);
          if ($database_enabled)
          save_form($form);
          redirect();
          }

          function redirect(){
          global $redirect_url;
          header("Location: $redirect_url");
          exit();
          }


          function save_form($vars){
          global $database_file, $database_fields;
          $f = fopen($database_file, 'a');
          if (!$f){
          die("Cannot open db file for save");
          }
          foreach ($vars as $k=>$v) {
          $vars[$k] = str_replace(array("|", "\r","\n"), array('_',' ',' '), $v);
          }
          if (is_array($database_fields)) {
          $vars_orig = $vars;
          $vars = array();
          foreach ($database_fields as $k)
          $vars[$k] = $vars_orig[$k];
          }
          $str = join('|', $vars);
          fwrite($f, $str."\n");
          fclose($f);
          }

          function auto_respond($vars){
          global $autoresponder_from, $autoresponder_message, $autoresponder_subject;
          /// replace all vars in message
          $msg = $autoresponder_message;
          preg_match_all('/%(.+?)%/', $msg, $out);
          $s_vars = $out[1]; //field list to substitute
          foreach ($s_vars as $k)
          $msg = str_replace("%$k%", $vars[$k], $msg);
          /// replace all vars in subject
          $subj = $autoresponder_subject;
          preg_match_all('/%(.+?)%/', $subj, $out);
          $s_vars = $out[1]; //field list to substitute
          foreach ($s_vars as $k)
          $subj = str_replace("%$k%", $vars[$k], $subj);
          //
          $_send_to = "$vars[name_from] <".$vars[email_from].">";
          $_send_from = $autoresponder_from;
          mail($_send_to, $subj, $msg, "From: $_send_from");
          }

          function _build_fields($vars){
          $skip_fields = array(
          'name_from',
          'email_from',
          'email_to',
          'name_to',
          'subject');
          // order by numeric begin, if it exists
          $is_ordered = 0;
          foreach ($vars as $k=>$v)
          if (in_array($k, $skip_fields)) unset($vars[$k]);

          $new_vars = array();
          foreach ($vars as $k=>$v){
          // remove _num, _reqnum, _req from end of field names
          $k = preg_replace('/_(req|num|reqnum)$/', '', $k);
          // check if the fields is ordered
          if (preg_match('/^\d+[ \:_-]/', $k)) $is_ordered++;
          $new_vars[$k] = $v;
          }
          $vars = $new_vars;

          $max_length = 10; // max length of key field
          foreach ($vars as $k=>$v) {
          $klen = strlen($k);
          if (($klen > $max_length) && ($klen < 40))
          $max_length = $klen;
          }

          if ($is_ordered){
          ksort($vars);
          $new_vars = array();
          foreach ($vars as $k=>$v){
          //remove number from begin of fields
          $k = preg_replace('/^\d+[ \:_-]/', '', $k);
          $new_vars[$k] = $v;
          }
          $vars = $new_vars;
          }

          // make output text
          $out = "";
          foreach ($vars as $k=>$v){
          $k = str_replace('_', ' ', $k);
          $k = ucfirst($k);
          $len_diff = $max_length - strlen($k);
          if ($len_diff > 0)
          $fill = str_repeat('.', $len_diff);
          else
          $fill = '';
          $out .= $k."$fill...: $v\n";
          }
          return $out;
          }


          function send_mail($vars){
          global $send_to, $send_cc;
          global $subject;
          global $attachment_enabled;
          global $REMOTE_ADDR;

          global $HTTP_POST_FILES;
          $files = array(); //files (field names) to attach in mail
          if (count($HTTP_POST_FILES) && $attachment_enabled){
          $files = array_keys($HTTP_POST_FILES);
          }

          // build mail
          $date_time = date('Y-m-d H:i:s');
          $mime_delimiter = "----=_NextPart_000_0001_".md5(time());
          $fields = _build_fields($vars);
          $mail =
          "This is a multi-part message in MIME format.

          --$mime_delimiter
          Content-type: text/plain
          Content-Transfer-Encoding: 8bit
          Content-Disposition: inline

          The aFromMail form submitted:
          $fields
          --------------------
          REMOTE IP : $REMOTE_ADDR
          DATE/TIME : $date_time
          ";

          if (count($files)){
          foreach ($files as $file){
          $file_name = $HTTP_POST_FILES[$file]['name'];
          $file_type = $HTTP_POST_FILES[$file]['type'];
          $file_tmp_name = $HTTP_POST_FILES[$file]['tmp_name'];
          $file_cnt = "";
          $f=@fopen($file_tmp_name, "rb");
          if (!$f)
          continue;
          while($f && !feof($f))
          $file_cnt .= fread($f, 4096);
          fclose($f);
          if (!strlen($file_type)) $file_type="applicaton/octet-stream";
          if ($file_type == 'application/x-msdownload')
          $file_type = "applicaton/octet-stream";

          $mail .= "\n--$mime_delimiter\n";
          $mail .= "Content-Type: $file_type;\n name=\"$file_name\"\n";
          $mail .= "Content-Transfer-Encoding: base64\n";
          $mail .= "Content-Disposition: attachment;\n filename=\"$file_name\"\n\n";
          $mail .= chunk_split(base64_encode($file_cnt));
          }
          }
          $mail .= "\n--$mime_delimiter--";


          //send to
          $_send_to = $send_to ? $send_to : "$vars[name_to] <".$vars[email_to].">";
          $_send_from = "$vars[name_from] <".$vars[email_from].">";
          $_subject = $subject ? $subject : $vars['subject'];

          mail($_send_to, $_subject, $mail,
          "MIME-Version: 1.0\nFrom: $_send_from\nContent-Type: multipart/mixed;\n boundary=\"$mime_delimiter\"\n");

          foreach ($send_cc as $v){
          mail($v, $_subject, $mail,
          "MIME-Version: 1.0\nFrom: $_send_from\nContent-Type: multipart/mixed;\n boundary=\"$mime_delimiter\"\n");
          }

          }
          function get_form_data(){
          $vars = ($_SERVER['REQUEST_METHOD'] == 'GET') ? $_GET : $_POST;
          //strip spaces from all fields
          foreach ($vars as $k=>$v) $vars[$k] = trim($v);
          if (get_magic_quotes_gpc())
          foreach ($vars as $k=>$v) $vars[$k] = stripslashes($v);

          if (isset($vars['name_from']))
          $vars['name_from'] = preg_replace("/[^\w\d\t\., _-]/", "", $vars['name_from']);
          if (isset($vars['email_from']))
          $vars['email_from'] = preg_replace("/[^@\w\.\d_-]/", "", $vars['email_from']);
          if (isset($vars['subject']))
          $vars['subject'] = preg_replace("/[^\w\d\t \".,;:#\$%^&\*()+=`~\|_-]/", "", $vars['subject']);

          return $vars;
          }

          function check_form($vars){
          global $referrers;
          global $send_to;
          global $subject;
          global $HTTP_REFERER;

          $errors = array();
          // check from email set
          if (!strlen($vars['email_from'])){
          $errors[] = "<b>From Email address</b> empty";
          } else if (!check_email($vars['email_from'])){
          $errors[] = "<b>From Email address</b> incorrect";
          }
          if (!strlen($send_to) && !strlen($vars['email_to'])){
          $errors[] = "<b>To Email</b> address empty (possible configuration error)";
          } else if (!strlen($send_to) && !check_email($vars['email_to'])){
          //if to email specified in form, check it and display error
          $errors[] = "<b>To Email address</b> incorrect";
          }
          if (!strlen($vars['subject']) && !strlen($subject)){
          $errors[] = "<b>Subject</b> empty (possible configuration error)";
          }
          foreach ($vars as $k=>$v){
          // check for required fields (end with _req)
          if (preg_match('/^(.+?)_req$/i', $k, $m) && !strlen($v)){
          $field_name = ucfirst($m[1]);
          $errors[] = "Required field <b>$field_name</b> empty";
          }
          // check for number fields (end with _num)
          if (preg_match('/^(.+?)_num$/i', $k, $m) && strlen($v) && !is_numeric($v)){
          $field_name = ucfirst($m[1]);
          $errors[] = "Field <b>$field_name</b> must contain only digits or be empty";
          }
          // check for number & required fields (end with _reqnum)
          if (preg_match('/^(.+?)_reqnum$/i', $k, $m) && !is_numeric($v)){
          $field_name = ucfirst($m[1]);
          $errors[] = "Field <b>$field_name</b> must contain digits and only digits";
          }
          }

          //check referrer
          if (is_array($referrers) && count($referrers)){
          $ref = parse_url($HTTP_REFERER);
          $host = $ref['host'];
          $host_found = 0;
          foreach ($referrers as $r){
          if (strstr($host, $r))
          $host_found++;
          }
          if (!$host_found){
          $errors[] = "Unknown Referrer: <b>$host</b>";
          }
          }
          return $errors;
          }

          function display_errors($errors){
          $errors = '<li>' . join('<li>', $errors);
          print <<<EOF
          <html>
          <head><title>aFormMail error</title></head>
          <body bgcolor=white>
          <h3 align=center><font color=red>An Error Occured</font></h3>
          <hr width=80%>
          <table align=center><tr><td>
          $errors
          </td></tr></table>
          <p align=center>
          <a href="javascript: history.back(-1)">Return</a> and fix these errors
          </p>
          <hr width=80%>
          <center>
          <font size=2>aFormMail - &copy <a href="">CGI Central, Inc.</a>, 2002</font>
          </center>
          </body></html>
          EOF;
          }


          /**
          * Check email using regexes
          * @param string email
          * @return bool true if email valid, false if not
          */
          function check_email($email) {
          #characters allowed on name: 0-9a-Z-._ on host: 0-9a-Z-. on between: @
          if (!preg_match('/^[0-9a-zA-Z\.\-\_]+\@[0-9a-zA-Z\.\-]+$/', $email))
          return false;

          #must start or end with alpha or num
          if ( preg_match('/^[^0-9a-zA-Z]|[^0-9a-zA-Z]$/', $email))
          return false;

          #name must end with alpha or num
          if (!preg_match('/([0-9a-zA-Z_]{1})\@./',$email) )
          return false;

          #host must start with alpha or num
          if (!preg_match('/.\@([0-9a-zA-Z_]{1})/',$email) )
          return false;

          #pair .- or -. or -- or .. not allowed
          if ( preg_match('/.\.\-.|.\-\..|.\.\..|.\-\-./',$email) )
          return false;

          #pair ._ or -_ or _. or _- or __ not allowed
          if ( preg_match('/.\.\_.|.\-\_.|.\_\..|.\_\-.|.\_\_./',$email) )
          return false;

          #host must end with '.' plus 2-5 alpha for TopLevelDomain
          if (!preg_match('/\.([a-zA-Z]{2,5})$/',$email) )
          return false;

          return true;
          }

          do_formmail();
          ?>

          But I kept coming up with parse errors on lines which Im not sure how to sort out. What I am attempting to do is make it possible for my forms to be submitted with attachments. (Also the script above allows me to copy the field information on a form into a .csv file which would be very useful to me.
          Am I trying to do to much or is there an easy/easier solution to my problems.

          Cheers
          DaveK
          Now Very Confused in Dublin.

          Comment


          • #6
            Re: Forms to drag information to me.

            This is a rather complicated script. It has database writing, Autoresponder and so on. However, you don't need to warry. Please explain exactlywhat you want to acomplish and upload your Form and Thankou page URL. I'll provide you with a ready to upload script that will work perfectly. Just let me know.
            Navaldesign
            Logger Lite: Low Cost, Customizable, multifeatured Login script
            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

            Comment


            • #7
              Re: Forms to drag information to me.

              Originally posted by navaldesign
              This is a rather complicated script. It has database writing, Autoresponder and so on. However, you don't need to warry. Please explain exactlywhat you want to acomplish and upload your Form and Thankou page URL. I'll provide you with a ready to upload script that will work perfectly. Just let me know.
              Form pages are http://dksolutions.info/upload_cv.html
              And http://dksolutions.info/upload_jobs.html

              Have not got a Thank You page... The php email script I was using allowed me to set up so an instant thank you for submit etc etc etc...... appeared.

              I want to redirect back to http://dksolutions.info/candidatemanager.html once forms are submitted. This seems like a lot of work to take on so I would like to know how I can repay your assistance.

              Thank you kindly
              DaveK
              Confused (But now hopeful) in Dublin

              Comment


              • #8
                Re: Forms to drag information to me.

                Originally posted by Confused in Dublin
                Form pages are http://dksolutions.info/upload_cv.html
                And http://dksolutions.info/upload_jobs.html

                Have not got a Thank You page... The php email script I was using allowed me to set up so an instant thank you for submit etc etc etc...... appeared.

                I want to redirect back to http://dksolutions.info/candidatemanager.html once forms are submitted. This seems like a lot of work to take on so I would like to know how I can repay your assistance.

                Thank you kindly
                DaveK
                Confused (But now hopeful) in Dublin
                Never mind. I just need some clues from you:

                1. You need their info to get tou you through email. You also want them to be able to upload any files that might interest, eventually pictures, CV in word, PDF files tec.
                2. The files will be uploaded on a specified directory (one for employers and one for employees) and the file link will get to you through the email. By clicking on the link you will be able to download the file.
                3. I will also need your email address on your Vodahost account. You must email that to me through my form at http://www.navaldesign.info/feedback13.html
                4. The script you posted writes also the info in a database. Do you need such a feature?
                5. It also has an Autoresponder function, but i think you can solve that through the autoresponders in your control panel.
                6. Are your forms in their final version ?


                You will need to create a thankyou page. There you can have a button to get them to http://dksolutions.info/candidatemanager.html or i can give you a piece of code to put in the page html that will automatically redirect them after say 3-5 secs that has display the thankyou message.

                Are these ok with you?
                Navaldesign
                Logger Lite: Low Cost, Customizable, multifeatured Login script
                Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                Comment


                • #9
                  Re: Forms to drag information to me.

                  Originally posted by navaldesign
                  Never mind. I just need some clues from you:

                  1. You need their info to get tou you through email. You also want them to be able to upload any files that might interest, eventually pictures, CV in word, PDF files tec.
                  2. The files will be uploaded on a specified directory (one for employers and one for employees) and the file link will get to you through the email. By clicking on the link you will be able to download the file.
                  3. I will also need your email address on your Vodahost account. You must email that to me through my form at http://www.navaldesign.info/feedback13.html
                  4. The script you posted writes also the info in a database. Do you need such a feature?
                  5. It also has an Autoresponder function, but i think you can solve that through the autoresponders in your control panel.
                  6. Are your forms in their final version ?


                  You will need to create a thankyou page. There you can have a button to get them to http://dksolutions.info/candidatemanager.html or i can give you a piece of code to put in the page html that will automatically redirect them after say 3-5 secs that has display the thankyou message.

                  Are these ok with you?

                  Thank you.
                  1. Yes exactly as you have said. I need the info on the form plus attachments by mail.

                  2. Yes again. I imagine the mails will arrive as per normal email and I open the attachment in the normal way in outlook express.

                  3. Will send you my email address as soon as I submit this.

                  4. I could use this feature as it will allow me to populate an ACCESS database which I use to track employers and candidates. I have placed a file in my public.html called data.csv (created in excel and uploaded directly) link is http://dksolutions.info/data.csv I had hoped to capure te information from the fields in this file and ten add hyperlinks to the documentation on my C:/ Drive. (If this is a major problem to do I can live without this feature)

                  5. Yes I can sort out the Autoresponder myself

                  6. up-load CV is in final format and upload_jobs is also about in its final format.

                  Thank you very much for your assistance

                  DaveK
                  Confused In Dublin

                  Comment


                  • #10
                    Re: Forms to drag information to me.

                    Have sent you my mail address. Love the Thumbs Up on submit. Very cool

                    Cheers
                    DaveK

                    Comment


                    • #11
                      Re: Forms to drag information to me.

                      Originally posted by Confused in Dublin
                      Have sent you my mail address. Love the Thumbs Up on submit. Very cool

                      Cheers
                      DaveK
                      Thanks Dave. I got it. I'll let you know
                      Navaldesign
                      Logger Lite: Low Cost, Customizable, multifeatured Login script
                      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                      Comment


                      • #12
                        Re: Forms to drag information to me.

                        Hi DaveK (AHA! this time it's correct!)

                        Here comes your script for the upload_cv Form. I'll prepare the other one tomorrow (I hope) :

                        <?php

                        // Receiving variables from the form
                        @$comments = addslashes($_POST['comments']);
                        @$location_desired = addslashes($_POST['location_desired']);
                        @$salary_expectations = addslashes($_POST['salary_expectations']);
                        @$targetjob_3 = addslashes($_POST['targetjob_3']);
                        @$targetjob_2 = addslashes($_POST['targetjob_2']);
                        @$targetjob_1 = addslashes($_POST['targetjob_1']);
                        @$telephone_second = addslashes($_POST['telephone_second']);
                        @$telephone_prefared_req = addslashes($_POST['telephone_prefared_req']);
                        @$email_from_req = addslashes($_POST['email_from_req']);
                        @$name_from_req = addslashes($_POST['name_from_req']);
                        @$Register_For_Mypage = addslashes($_POST['Register_For_Mypage']);
                        @$Attach_CV_Name = $_FILES['Attach_CV']['name'];
                        @$Attach_CV_Size = $_FILES['Attach_CV']['size'];
                        @$Attach_CV_Temp = $_FILES['Attach_CV']['tmp_name'];
                        @$Attach_CV_Mime_Type = $_FILES['Attach_CV']['type'];
                        function RecursiveMkdir($path)
                        {
                        if (!file_exists($path))
                        {
                        RecursiveMkdir(dirname($path));
                        mkdir($path, 0777);
                        }
                        }

                        // Validation
                        if (strlen($location_desired) == 0 )
                        {
                        header("Location: http://www.navaldesign.info/error_empty_field.html");
                        exit;
                        }
                        if (strlen($targetjob_1) == 0 )
                        {
                        header("Location: http://www.navaldesign.info/error_empty_field.html");
                        exit;
                        }
                        if (strlen($telephone_prefared_req) == 0 )
                        {
                        header("Location: http://www.navaldesign.info/error_empty_field.html");
                        exit;
                        }
                        if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email_from_req))
                        {
                        header("Location: http://www.navaldesign.info/error_email.html");
                        exit;
                        }
                        if (strlen($email_from_req) == 0 )
                        {
                        header("Location: http://www.navaldesign.info/error_email.html");
                        exit;
                        }
                        if (strlen($name_from_req) == 0 )
                        {
                        header("Location: http://www.navaldesign.info/error_empty_field.html");
                        exit;
                        }
                        if ($Attach_CV_Size>0)
                        {
                        if( $Attach_CV_Size >250000)
                        {
                        //delete file
                        unlink($Attach_CV_Temp);
                        header("Location: http://www.navaldesign.info/error_file_size.html");
                        exit;
                        }
                        $uploadFile = "uploads/".$Attach_CV_Name ;
                        if (!is_dir(dirname($uploadFile)))
                        {
                        @RecursiveMkdir(dirname($uploadFile));
                        }
                        else
                        {
                        @chmod(dirname($uploadFile), 0777);
                        }
                        @move_uploaded_file( $Attach_CV_Temp , $uploadFile);
                        chmod($uploadFile, 0644);
                        $Attach_CV_URL = "http://www.dksolutions.info/uploads/".$Attach_CV_Name ;
                        }
                        //Sending Email to form owner
                        $pfw_header = "From: $email_from_req\n"
                        . "Reply-To: $email_from_req\n";
                        $pfw_subject = "CV Submission Form";
                        $pfw_email_to = "info@dksolutions.info";
                        $pfw_message = "comments: $comments\n"
                        . "location_desired: $location_desired\n"
                        . "salary_expectations: $salary_expectations\n"
                        . "targetjob_3: $targetjob_3\n"
                        . "targetjob_2: $targetjob_2\n"
                        . "targetjob_1: $targetjob_1\n"
                        . "telephone_second: $telephone_second\n"
                        . "telephone_prefared_req: $telephone_prefared_req\n"
                        . "email_from_req: $email_from_req\n"
                        . "name_from_req: $name_from_req\n"
                        . "Register_For_Mypage: $Register_For_Mypage\n"
                        . "Attach_CV: $Attach_CV_URL\n";
                        *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
                        header("Location: http://www.navaldesign.info/thankyou_page.html");
                        ?>

                        As you can see, for the moment being, i have mu own error pages inserted in the script. The reason for doing this is for you to test the form. Indeed, in my site, I have recreated your form. It is here.

                        http://www.navaldesign.info/Dksolutions/upload_cv.html

                        I have added the asteriscks for Required fields and i rearranged a bit some things. I added email validation and file size limit 250 Kb. The email is yours, so the form info will arrive directly to you so you can test it. If' I typed it mistaken, please correct it when in Notepad (I'll explain what i mean)

                        The file upload will upload the attached file in a directory called "uploads" that you have to create using BlueFTP. Give it permission 777 (in Blue FTP, connect, click somewhere on the right part of the screen, go to File, New Folder, enter "uploads". After it is created, select it, rig***lick and chose Properties, Permissions and enter 777.


                        Now comes the easy part: Copy and paste the script in Notepad. Of course you must change the error and thankyou pages to point to your error and thankyou pages(you MUST create these pages and name them exactly as they are named in the script). Then savethe file: go to Save, chose File Type "All files", and save the file as "upload_cv.php" somewhere
                        in your BV folder. Upload it to the server. You are done!

                        Please note that error pages are for my site, you don't have to make them like that. The important thing is to make them clear to your visitor.



                        This is the email you will be getting:

                        From: sendersemail@example.com To info@dksolutions.info
                        Subject: CV Submission Form
                        comments: Just testing 2
                        location_desired: Dublin South
                        salary_expectations: 1200
                        targetjob_3: Not Selected
                        targetjob_2: Accounts Technician
                        targetjob_1: A/P
                        telephone_second: 090999999

                        telephone_prefared_req: 0808888888
                        email_from_req: sendersemail@example.com

                        name_from_req: George Navaldesign
                        Register_For_Mypage: Yes if Checked
                        Attach_CV: http://www.dksolutions.info/...........culumvitae.doc


                        As you can see at the bottom there is a link to your site. Clicking on the link you can open the file, or you can use Blue FTP to download it.

                        As i told you, i recreated your form for you to test. Test it, receive the emails and let me know if everything is ok. If you want i can modify the script ro have your data and email it to you.

                        Bye
                        Navaldesign
                        Logger Lite: Low Cost, Customizable, multifeatured Login script
                        Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                        DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                        Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                        Comment


                        • #13
                          Re: Forms to drag information to me.

                          Hi Navaldesign

                          Thank you kindly for that, I will check out the form on your site this evening an let you know how it goes. then I will have a go at getting it all working on my site tomorrow evening. So fingers crossed I get it all right on this end.

                          Once again thank you, if there is anything you require from Ireland just let me know. (Have some friends involved in razor fishing and have mentioned your site to them)

                          Cheers for Now
                          DaveK

                          Comment


                          • #14
                            Re: Forms to drag information to me.

                            Originally posted by Confused in Dublin
                            Hi Navaldesign

                            Thank you kindly for that, I will check out the form on your site this evening an let you know how it goes. then I will have a go at getting it all working on my site tomorrow evening. So fingers crossed I get it all right on this end.

                            Once again thank you, if there is anything you require from Ireland just let me know. (Have some friends involved in razor fishing and have mentioned your site to them)

                            Cheers for Now
                            DaveK
                            Thanks DaveK,

                            I really appreciate that

                            Let me know

                            Bye
                            Navaldesign
                            Logger Lite: Low Cost, Customizable, multifeatured Login script
                            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                            Comment


                            • #15
                              Re: Forms to drag information to me.

                              Hi Again Naval

                              Tried the form on your site, it looks great but when I tried to submit it brought me to one of your error pages and indicated that first name and email where not filled in, they where filled in. I tried three times and got the same error. I will leave this in your capable hands

                              DaveK

                              Comment

                              Working...
                              X