PDA

View Full Version : Forms to drag information to me.



Confused in Dublin
01-27-2006, 07:13 PM
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 (http://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

navaldesign
01-27-2006, 09:26 PM
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 (http://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/forms/2887-auto-response-e-mail-registry-form.html#post11943

post # 3. Feel free to try the form and look at all the auxiliary pages.

Confused in Dublin
01-27-2006, 09:49 PM
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

Confused in Dublin
01-27-2006, 10:05 PM
You can do what you want: have a look at : http://www.vodahost.com/vodatalk/forms/2887-auto-response-e-mail-registry-form.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

Confused in Dublin
01-28-2006, 05:14 PM
You can do what you want: have a look at : http://www.vodahost.com/vodatalk/forms/2887-auto-response-e-mail-registry-form.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 (you@youremail.com)>";
// set $send_cc address if you need copy of mail to other addresses
// for example: $send_cc = array('friend1@ccc.cc' ('friend1@ccc.cc'), 'friend2@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 ($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.

navaldesign
01-28-2006, 05:22 PM
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.

Confused in Dublin
01-28-2006, 05:43 PM
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

navaldesign
01-28-2006, 05:59 PM
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?

Confused in Dublin
01-28-2006, 06:28 PM
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

Confused in Dublin
01-28-2006, 06:32 PM
Have sent you my mail address. Love the Thumbs Up on submit. Very cool

Cheers
DaveK

navaldesign
01-28-2006, 06:39 PM
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
01-30-2006, 11:49 PM
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 (sendersemail@example.com)
name_from_req: George Navaldesign
Register_For_Mypage: Yes if Checked
Attach_CV: http://www.dksolutions.info/........../Curiculumvitae.doc (http://www.dksolutions.info/uploads/Curiculum)

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

Confused in Dublin
01-30-2006, 11:57 PM
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

navaldesign
01-31-2006, 12:01 AM
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

Confused in Dublin
01-31-2006, 12:07 AM
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

navaldesign
01-31-2006, 12:08 AM
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

Ok, sorry I'll have it checked

navaldesign
01-31-2006, 12:11 AM
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

It works ok. Maybe you just filled in some letters for the email ? Because it checks to see if it is a xxxxxxx@.yyyy.com type

As for the error pages I'll have a look and see why it didnt bring you up the "wrong email" page. However now you must have mail in CP

Confused in Dublin
01-31-2006, 02:27 PM
Hi Navaldesign.

One small error on mypart. The mail address for Cvs should be cvs@dksolutions.info and for Jobs jobs@dksolutions.info.

No mails have come in as of yet but will trial it later and let you know.

Cheers
DaveK

navaldesign
01-31-2006, 04:28 PM
Hi Navaldesign.

One small error on mypart. The mail address for Cvs should be cvs@dksolutions.info and for Jobs jobs@dksolutions.info.

No mails have come in as of yet but will trial it later and let you know.

Cheers
DaveK

Ok, later I'll be sending you the file so you can upload it directly on your server. The emails might not arrive to you because the script works on my server, so , being without SMTP autentication, it doesn't send the emails to you. When i put my email, it works great. Please create in the meantime the error and thankyou pages. Make them simple, you can always edit them later. Just make sure to name them exactly as they are named in the script.

Confused in Dublin
01-31-2006, 05:45 PM
Hi Navaldesign.

Just to confirm.

The pages I need to write are as follows

(Thank you for your CV)
with navigation back to the main site and name it thankyou_page

(You have attached a file which is to large to be sent. Please edit or send in two parts.)
On this page have a navigation button called back which brings them back to the form. (Not to sure about this one should I direct them to use the back arrow on the browser)
This page to be named error_file_size

(Your have failed to fill in a required field please return to form.)
Again navigate back to the form or use back arrow on browser
name this page error_empty_field

(You have either left the email field blank or have submitted an invalid mail address)
And again navigate back to the form or use back arrow on browser
name this page error_email

Also should all the error pages direct that files need to be attached again.
(If I use a back navigation button and point it at the page will this bring them to the details they have filled in or to a refreshed page??? your advice on this please)

Once again thank you for taking this project on I will find a way to repay your kindness

DaveK
Confused in Dublin
(PS the horse is not one of mine but I thought people would get a laugh out of it)

navaldesign
01-31-2006, 06:29 PM
Hi Navaldesign.

Just to confirm.

The pages I need to write are as follows

(Thank you for your CV)
with navigation back to the main site and name it thankyou_page Exactly. If you want i can give you a piece of code that takes them back to whichever page you want after displaying the Thankyou message for 3 - 5 secs, but it would be better if you put an Button, with the link of the page where you want to send them. Use the Advanced Button as described in the third question, setting the action to "Navigate to the specified URL" and give the URL of the page where you want to send them.

(You have attached a file which is to large to be sent. Please edit or send in two parts.)
Again exactly. Put the Advanced Button to take them Back also in here. Of course we can change the limit to whatever limit you want, but a CV should nor create problems becuse they usually are 30 - 40 Kb

On this page have a navigation button called back which brings them back to the form. (Not to sure about this one should I direct them to use the back arrow on the browser)
This page to be named error_file_size Correct

It's not very functional using the browser Back Button. Insert an "Advanced Button" from BV Insert > Form > Advanced Button set button type "On click" action "Go to the previous page". You can customize it as for dimensions, fill, border ecc.

(Your have failed to fill in a required field please return to form.)
Again navigate back to the form or use back arrow on browser
name this page error_empty_field Correct. Use the same Advanced Button

(You have either left the email field blank or have submitted an invalid mail address)
And again navigate back to the form or use back arrow on browser
name this page error_email Correct. Use the same Advanced Button.

Also should all the error pages direct that files need to be attached again. YES, it would be an apropriate reminder. Please note that not all emploees have a computer written CV, that's why i didn't make the file uploading a required field. Some may just prefer to fill their info in the text area
(If I use a back navigation button and point it at the page will this bring them to the details they have filled in or to a refreshed page??? your advice on this please) All the details will be there exept for the attached file which is reset automatically

Once again thank you for taking this project on I will find a way to repay your kindness

DaveK
Confused in Dublin
(PS the horse is not one of mine but I thought people would get a laugh out of it)

You can create a single error page, then customize for each case and save it under the correct for each case name

Confused in Dublin
01-31-2006, 06:46 PM
Brilliant.

I Will start working on that straight away.

DaveK
Confused In Dublin

Confused in Dublin
01-31-2006, 07:22 PM
Hi Naval Design.

Have now published the four pages to my site hope they are ok. Should I go ahead and upload the script now or does it require any changes.

DaveK
Confused in Dublin

navaldesign
01-31-2006, 07:41 PM
Hi Naval Design.

Have now published the four pages to my site hope they are ok. Should I go ahead and upload the script now or does it require any changes.

DaveK
Confused in Dublin

I'm changing it now, i'll email it to you so you shall just have to uploadit.

navaldesign
01-31-2006, 08:28 PM
I have sent you the mail. Let me know

RPW
02-13-2006, 12:20 AM
Hello "Confused in Dublin"

Came accross this website when looking elsewhere in the forum and it may be of interest to you as it seems to revolve around recruitment companies and their requirements etc.

http://www.dieselscripts.com

Hope it helps

Confused in Dublin
02-13-2006, 10:34 AM
Thanks for that will certainly have a look