php form

send form

  • (2 Pages)
  • +
  • 1
  • 2

21 Replies - 36175 Views - Last Post: 25 October 2010 - 12:34 PM Rate Topic: -----

#1 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

php form

Posted 21 October 2010 - 06:11 AM

H'i i want to send my php form to email, but send it exactly as it looks like on the web page, not onley the writen data, maybe as an pdf file. Is this posibe?
Is This A Good Question/Topic? 0
  • +

Replies To: php form

#2 PhunkRabbit   User is offline

  • D.I.C Regular
  • member icon

Reputation: 81
  • View blog
  • Posts: 406
  • Joined: 23-August 10

Re: php form

Posted 21 October 2010 - 06:15 AM

How does it look on the webpage? do you have an image or live example?
Was This Post Helpful? 0
  • +
  • -

#3 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4241
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: php form

Posted 21 October 2010 - 06:22 AM

You could always send it as a HTML email. That should be able to replicate your online form fairly accurately.

PHP can of course generate PDF. It may be harder to replicate your form accurately that way, but it's possible.
Check out PDF in the PHP manual for info on how to do that.
Was This Post Helpful? 0
  • +
  • -

#4 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 21 October 2010 - 06:27 AM

View PostAtli, on 21 October 2010 - 05:22 AM, said:

You could always send it as a HTML email. That should be able to replicate your online form fairly accurately.

PHP can of course generate PDF. It may be harder to replicate your form accurately that way, but it's possible.
Check out PDF in the PHP manual for info on how to do that.



Thank's
I am using HTML email settings, but onley text arivrs.

View PostPhunkRabbit, on 21 October 2010 - 05:15 AM, said:

How does it look on the webpage? do you have an image or live example?




This is how the form looks like (see img(.

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#5 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4241
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: php form

Posted 21 October 2010 - 06:29 AM

OK. Show us what you are doing and we'll try to help spot the problem. If you are getting any error messages or weird/unexpected behavior it would help to know about those to.

And remember the [code] tags please ;)
Was This Post Helpful? 0
  • +
  • -

#6 PhunkRabbit   User is offline

  • D.I.C Regular
  • member icon

Reputation: 81
  • View blog
  • Posts: 406
  • Joined: 23-August 10

Re: php form

Posted 21 October 2010 - 06:31 AM

HTML email should be more than enough to replicate the page in email, be carefull of email client rendering differences though.
Was This Post Helpful? 0
  • +
  • -

#7 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 21 October 2010 - 06:40 AM

View PostAtli, on 21 October 2010 - 05:29 AM, said:

OK. Show us what you are doing and we'll try to help spot the problem. If you are getting any error messages or weird/unexpected behavior it would help to know about those to.

And remember the [code] tags please ;)



I'm not getting any errors, i just get the form data in text in the email. I want the hole page as it looks and filled in. ( see img in prev, post)
Was This Post Helpful? 0
  • +
  • -

#8 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12769
  • View blog
  • Posts: 45,954
  • Joined: 27-December 08

Re: php form

Posted 21 October 2010 - 06:53 AM

Check out the mail() function. You can use it to turn on HTML-emails, and send HTML data. It *should* render in the email, but that really depends on the email client being used.
Was This Post Helpful? 0
  • +
  • -

#9 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 21 October 2010 - 11:08 AM

View Postmacosxnerd101, on 21 October 2010 - 05:53 AM, said:

Check out the mail() function. You can use it to turn on HTML-emails, and send HTML data. It *should* render in the email, but that really depends on the email client being used.



This is the email code i use:(see file)

I tryed to change the email type to diferent settings, butt al i get is text, i get an html document but that is alsow just text in it. i want the entire page?

Attached File(s)


Was This Post Helpful? 0
  • +
  • -

#10 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12769
  • View blog
  • Posts: 45,954
  • Joined: 27-December 08

Re: php form

Posted 21 October 2010 - 11:11 AM

Please post your code using code tags, not as an attachment.
Was This Post Helpful? 0
  • +
  • -

#11 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 21 October 2010 - 11:49 AM

View Postmacosxnerd101, on 21 October 2010 - 10:11 AM, said:

Please post your code using code tags, not as an attachment.





<?php
   function ValidateEmail($email)
   {
      $pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i';
      return preg_match($pattern, $email);
   }

   function RecursiveMkdir($path)
   {
      if (!file_exists($path))
      {
         RecursiveMkdir(dirname($path));
         mkdir($path, 0777);
      }
   }

   function WriteToFile($data)
   {
      $csvFile = "./formdata.csv";
      $handle = fopen($csvFile, 'a') or die("can't open file");
      $logtime = date("Y-m-d H:i:s,");
      fwrite($handle, $logtime);
      fwrite($handle, $_SERVER['REMOTE_ADDR']);
      fwrite($handle, $data);
      fclose($handle);
   }

   if($_SERVER['REQUEST_METHOD'] == 'POST')
   {
      $mailto = '';
      $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
      $subject = 'Personalkort';
      $message = 'FC AB - Personalkort:';
	 
      $success_url = './tack.php';
      $error_url = './error.php';
      $error = '';
      $eol = "\n";
      $max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000;
      $upload_folder = "upload";
      $upload_folder = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])."/".$upload_folder;

      $boundary = md5(uniqid(time()));

      $header  = 'From: '.$mailfrom.$eol;
      $header .= 'Reply-To: '.$mailfrom.$eol;
      $header .= 'MIME-Version: 1.0'.$eol;
      $header .= 'Content-Type: multipart/html; boundary="'.$boundary.'"'.$eol;
      $header .= 'X-Mailer: PHP v'.phpversion().$eol;
      if (!ValidateEmail($mailfrom))
      {
         $error .= "The specified email address is invalid!\n<br>";
      }

      $prefix = rand(111111, 999999);

      $i = 0;
      while (list ($key, $val) = each ($_FILES))
      {
         if ($_FILES[$key]['name'] != "" and file_exists($_FILES[$key]['tmp_name']) and $_FILES[$key]['size'] > 0)
         {
            $upload_DstName[$i] = $prefix . "_" . str_replace(" ", "_", $_FILES[$key]['name']);
            $upload_SrcName[$i] = $_FILES[$key]['name'];
            $upload_Size[$i] = ($_FILES[$key]['size']);
            $upload_Temp[$i] = ($_FILES[$key]['tmp_name']);
            $upload_Type[$i] = ($_FILES[$key]['type']);
            $uploadlink[$i] = "$upload_folder/$upload_DstName[$i]";
            $upload_fieldname[$i] = $key;
            $upload_fieldname_final[$i] = ucwords(str_replace("_", " ", $key));
            $fieldvalue[$i] = $uploadlink[$i];
            $i++;
         }
         if ($upload_Size[$i] >= $max_filesize)
         {
            $error .= "The size of $key (file: $upload_SrcName[$i]) is bigger than the allowed " . $max_filesize/1024 . " Kbytes!\n";
         }
      }

      if (!empty($error))
      {
         $errorcode = file_get_contents($error_url);
         $replace = "##error##";
         $errorcode = str_replace($replace, $error, $errorcode);
         echo $errorcode;
         exit;
      }

      $uploadfolder = basename($upload_folder);
      for ($i = 0; $i < count($upload_DstName); $i++)
      {
         $uploadFile = $uploadfolder . "/" . $upload_DstName[$i];
         if (!is_dir(dirname($uploadFile)))
         {
            RecursiveMkdir(dirname($uploadFile));
         }
         else
         {
            chmod(dirname($uploadFile), 0777);
         }
         move_uploaded_file($upload_Temp[$i] , $uploadFile);
         chmod($uploadFile, 0644);
      }

      $internalfields = array ("submit", "reset", "send", "captcha_code");
      $message .= $eol;
      $message .= "IP Address : ";
      $message .= $_SERVER['REMOTE_ADDR'];
      $message .= $eol;
      foreach ($_POST as $key => $value)
      {
         if (!in_array(strtolower($key), $internalfields))
         {
            $logdata .= ',';
            if (!is_array($value))
            {
               $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol;
               $logdata .= $value;
            }
            else
            {
               $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol;
               $logdata .= implode("|", $value);
            }
         }
      }

      $logdata .= "\r\n";
      WriteToFile($logdata);

      if (count($upload_SrcName) > 0)
      {
         $message .= "\nThe following files have been uploaded:\n";
         for ($i = 0; $i < count($upload_SrcName); $i++)
         {
            $message .= $upload_SrcName[$i] . " Link: " . $uploadlink[$i] . "\n";
         }
      }
      $body  = 'This is a multi-part message in MIME format.'.$eol.$eol;
      $body .= '--'.$boundary.$eol;
      $body .= 'Content-Type: text/html; charset=ISO-8859-1'.$eol;
      $body .= 'Content-Transfer-Encoding: 8bit'.$eol;
      $body .= $eol.stripslashes($message).$eol;
      $body .= '--'.$boundary.'--'.$eol;
      mail($mailto, $subject, $body, $header);
      header('Location: '.$success_url);
      exit;
   }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FCD KB - Tidrapport</title>
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com"/>
<style type="text/css">


Was This Post Helpful? 0
  • +
  • -

#12 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4241
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: php form

Posted 21 October 2010 - 05:46 PM

OK. Even though your email seems to indicate that it will contain HTML, what you send is never HTML. The $message is created without any HTML, in plain-text. If you want to send the email as HTML, you need to actually write the contents of the email as HTML. PHP doesn't do that automatically just because the email headers say it contains HTML.

A good way to build HTML emails without having to clutter your PHP with it is to define your HTML in a separate file and include it. For example:
<?php
/**
 * File: emailTemplate.php
 */
$msg = <<<HTML
<!DOCTYPE html>
<html>
<head>
  <title>HTML email template</title>
  <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
  <h1>This is a test email</h1>
  <div>
    <p>Name: {$data['name']}</p>
    <p>Email: {$data['email']}</p>
    <p>Whatever: {$data['whatever']}</p>
  </div>
</body>
</html>
HTML;

return $msg;
?>


<?php
# This would be the data you want inserted into the HTML.
$data = array();
$data['name'] = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8');
$data['email'] = htmlentities($_POST['email'], ENT_QUOTES, 'UTF-8');
$data['whatever'] = htmlentities($_POST['whatever'], ENT_QUOTES, 'UTF-8');

# Fetch the template. The $data array will be automatically
# used by the code in the template.
$htmlBody = include "emailTemplate.php";

# And then use the $htmlBody as your HTML email body.
?>

Was This Post Helpful? 1
  • +
  • -

#13 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 22 October 2010 - 01:04 AM

View PostAtli, on 21 October 2010 - 04:46 PM, said:

OK. Even though your email seems to indicate that it will contain HTML, what you send is never HTML. The $message is created without any HTML, in plain-text. If you want to send the email as HTML, you need to actually write the contents of the email as HTML. PHP doesn't do that automatically just because the email headers say it contains HTML.

A good way to build HTML emails without having to clutter your PHP with it is to define your HTML in a separate file and include it. For example:
<?php
/**
 * File: emailTemplate.php
 */
$msg = <<<HTML
<!DOCTYPE html>
<html>
<head>
  <title>HTML email template</title>
  <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
  <h1>This is a test email</h1>
  <div>
    <p>Name: {$data['name']}</p>
    <p>Email: {$data['email']}</p>
    <p>Whatever: {$data['whatever']}</p>
  </div>
</body>
</html>
HTML;

return $msg;
?>


<?php
# This would be the data you want inserted into the HTML.
$data = array();
$data['name'] = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8');
$data['email'] = htmlentities($_POST['email'], ENT_QUOTES, 'UTF-8');
$data['whatever'] = htmlentities($_POST['whatever'], ENT_QUOTES, 'UTF-8');

# Fetch the template. The $data array will be automatically
# used by the code in the template.
$htmlBody = include "emailTemplate.php";

# And then use the $htmlBody as your HTML email body.
?>



OK, so it wold be hard to modyfie my code?
Do you have a ready to yous exemple form?
Was This Post Helpful? 0
  • +
  • -

#14 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 22 October 2010 - 02:33 AM

View PostAtli, on 21 October 2010 - 04:46 PM, said:

OK. Even though your email seems to indicate that it will contain HTML, what you send is never HTML. The $message is created without any HTML, in plain-text. If you want to send the email as HTML, you need to actually write the contents of the email as HTML. PHP doesn't do that automatically just because the email headers say it contains HTML.

A good way to build HTML emails without having to clutter your PHP with it is to define your HTML in a separate file and include it. For example:
<?php
/**
 * File: emailTemplate.php
 */
$msg = <<<HTML
<!DOCTYPE html>
<html>
<head>
  <title>HTML email template</title>
  <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
  <h1>This is a test email</h1>
  <div>
    <p>Name: {$data['name']}</p>
    <p>Email: {$data['email']}</p>
    <p>Whatever: {$data['whatever']}</p>
  </div>
</body>
</html>
HTML;

return $msg;
?>


<?php
# This would be the data you want inserted into the HTML.
$data = array();
$data['name'] = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8');
$data['email'] = htmlentities($_POST['email'], ENT_QUOTES, 'UTF-8');
$data['whatever'] = htmlentities($_POST['whatever'], ENT_QUOTES, 'UTF-8');

# Fetch the template. The $data array will be automatically
# used by the code in the template.
$htmlBody = include "emailTemplate.php";

# And then use the $htmlBody as your HTML email body.
?>


So do i continue whit this on line 14:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FCD KB - Tidrapport</title>
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com"/>
<style type="text/css">
div#container
{
   width: 1500px;
   position: relative;
   margin-top: 0px;
   margin-left: auto;
   margin-right: auto;
   text-align: left;
}
</style>
<style type="text/css">
body
{
   text-align: center;
   margin: 0;
   background-color: #E6E6E6;
   color: #000000;
   scrollbar-face-color: #D4D0C8;
   scrollbar-arrow-color: #000000;
   scrollbar-3dlight-color: #D4D0C8;
   scrollbar-darkshadow-color: #404040;
   scrollbar-highlight-color: #FFFFFF;
   scrollbar-shadow-color: #808080;
   scrollbar-track-color: #D4D0C8;
   overflow-y: scroll;
}
</style>
</head>
<body>
<div id="container">
<div id="wb_Image2" style="margin:0;padding:0;position:absolute;left:0px;top:760px;width:1250px;height:92px;text-align:left;z-index:98;">
<img src="images/footer.gif" id="Image2" alt="" border="0" style="width:1250px;height:92px;"/></div>
<div id="wb_Image1" style="margin:0;padding:0;position:absolute;left:0px;top:0px;width:1250px;height:71px;text-align:left;z-index:99;">
<img src="images/header.gif" id="Image1" alt="" border="0" style="width:1250px;height:71px;"/></div>
<div id="wb_Image4" style="margin:0;padding:0;position:absolute;left:0px;top:61px;width:1250px;height:749px;text-align:left;z-index:100;">
<img src="images/body.gif" id="Image4" alt="" border="0" style="width:1250px;height:749px;"/></div>
<div id="wb_Image3" style="margin:0;padding:0;position:absolute;left:33px;top:58px;width:1183px;height:14px;text-align:left;z-index:101;">
<img src="images/banner-background.gif" id="Image3" alt="" border="0" style="width:1183px;height:14px;"/></div>
<div id="wb_Form2" style="position:absolute;background-color:#F0F0F0;left:34px;top:76px;width:1183px;height:715px;z-index:102">
<form name="Personalkort" method="post" action="<?php echo basename(__FILE__); ?>" enctype="multipart/form-data" id="Form2">
<div id="wb_Text7" style="margin:0;padding:0;position:absolute;left:141px;top:172px;width:323px;height:16px;text-align:left;z-index:0;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Arbete / arbetsställe. Kind of work / workingspot:</strong></span></div>
<div id="wb_Text6" style="margin:0;padding:0;position:absolute;left:10px;top:172px;width:112px;height:16px;text-align:left;z-index:1;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Datum / Date:</strong></span></div>
<div id="wb_Text3" style="margin:0;padding:0;position:absolute;left:10px;top:105px;width:135px;height:16px;text-align:left;z-index:2;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Arbetare / Worker:</strong></span></div>
<div id="wb_Text2" style="margin:0;padding:0;position:absolute;left:10px;top:55px;width:296px;height:16px;text-align:left;z-index:3;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Beställarens projekt nr / Purchaser Project nr:</strong></span></div>
<div id="wb_Text1" style="margin:0;padding:0;position:absolute;left:10px;top:5px;width:182px;height:16px;text-align:left;z-index:4;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Arbetsplats / Workingsite:</strong></span></div>
<div id="wb_Text8" style="margin:0;padding:0;position:absolute;left:845px;top:155px;width:87px;height:32px;text-align:left;z-index:5;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Arbetarsign/ <br/>
Workersign: </strong></span></div>
<div id="wb_Text9" style="margin:0;padding:0;position:absolute;left:937px;top:155px;width:102px;height:32px;text-align:left;z-index:6;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Antal timmar/ Working hours:</strong></span></div>
<div id="wb_Text10" style="margin:0;padding:0;position:absolute;left:1053px;top:171px;width:98px;height:16px;text-align:left;z-index:7;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Övrigt / Other:</strong></span></div>
<input type="text" id="Editbox1" style="position:absolute;left:10px;top:22px;width:288px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:8" name="Arbetsplats / Workingsite:" value=""/>
<input type="text" id="Editbox2" style="position:absolute;left:10px;top:72px;width:288px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:9" name="Beställarens projekt nr / Purchaser Project nr:" value=""/>
<input type="text" id="Editbox3" style="position:absolute;left:10px;top:122px;width:288px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:10" name="Arbetare / Worker:" value=""/>
<input type="text" id="Editbox6" style="position:absolute;left:10px;top:190px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:11" name="1 - Datum / Date:" value=""/>
<textarea name="1 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea1" style="position:absolute;left:141px;top:190px;width:698px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;font-family:Courier New;font-size:13px;z-index:12" rows="0" cols="83"></textarea>
<input type="text" id="Editbox7" style="position:absolute;left:845px;top:190px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:13" name="1 - Arbetarsign:" value=""/>
<input type="text" id="Editbox8" style="position:absolute;left:921px;top:190px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:14" name="1 - Antal timmar / Working hours:" value=""/>
<textarea name="1 - Övrigt / Other:" id="TextArea2" style="position:absolute;left:1038px;top:190px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:15" rows="0" cols="11"></textarea>
<input type="text" id="Editbox9" style="position:absolute;left:10px;top:215px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:16" name="2 - Datum / Date:" value=""/>
<textarea name="2 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea3" style="position:absolute;left:141px;top:215px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:17" rows="0" cols="83"></textarea>
<input type="text" id="Editbox10" style="position:absolute;left:845px;top:215px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:18" name="2  -  Arbetarsign:" value=""/>
<input type="text" id="Editbox11" style="position:absolute;left:921px;top:215px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:19" name="2 -  Antal timmar / Working hours:" value=""/>
<textarea name="2 - Övrigt / Other:" id="TextArea4" style="position:absolute;left:1038px;top:215px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:20" rows="0" cols="11"></textarea>
<input type="text" id="Editbox12" style="position:absolute;left:10px;top:240px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:21" name="3 - Datum / Date:" value=""/>
<textarea name="3 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea5" style="position:absolute;left:141px;top:240px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:22" rows="0" cols="83"></textarea>
<input type="text" id="Editbox13" style="position:absolute;left:845px;top:240px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:23" name="3 - Arbetarsign:" value=""/>
<input type="text" id="Editbox14" style="position:absolute;left:921px;top:240px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:24" name="3 - Antal timmar / Working hours:" value=""/>
<textarea name="3 - Övrigt / Other:" id="TextArea6" style="position:absolute;left:1038px;top:240px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:25" rows="0" cols="11"></textarea>
<input type="text" id="Editbox15" style="position:absolute;left:10px;top:265px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:26" name="4 - Datum / Date:" value=""/>
<textarea name="4 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea7" style="position:absolute;left:141px;top:265px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:27" rows="0" cols="83"></textarea>
<input type="text" id="Editbox16" style="position:absolute;left:845px;top:265px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:28" name="4 - Arbetarsign:" value=""/>
<input type="text" id="Editbox17" style="position:absolute;left:921px;top:265px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:29" name="4 - Antal timmar / Working hours:" value=""/>
<textarea name="4 - Övrigt / Other:" id="TextArea8" style="position:absolute;left:1038px;top:265px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:30" rows="0" cols="11"></textarea>
<input type="text" id="Editbox18" style="position:absolute;left:10px;top:290px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:31" name="5 - Datum / Date:" value=""/>
<textarea name="5 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea9" style="position:absolute;left:141px;top:290px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:32" rows="0" cols="83"></textarea>
<input type="text" id="Editbox19" style="position:absolute;left:845px;top:290px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:33" name="5 - Arbetarsign:" value=""/>
<input type="text" id="Editbox20" style="position:absolute;left:921px;top:290px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:34" name="5 - Antal timmar / Working hours:" value=""/>
<textarea name="5 -  Övrigt / Other:" id="TextArea10" style="position:absolute;left:1038px;top:290px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:35" rows="0" cols="11"></textarea>
<input type="text" id="Editbox21" style="position:absolute;left:10px;top:315px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:36" name="6 - Datum / Date:" value=""/>
<textarea name="6 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea11" style="position:absolute;left:141px;top:315px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:37" rows="0" cols="83"></textarea>
<input type="text" id="Editbox22" style="position:absolute;left:845px;top:315px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:38" name="6 - Arbetarsign:" value=""/>
<input type="text" id="Editbox23" style="position:absolute;left:921px;top:315px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:39" name="6 - Antal timmar / Working hours:" value=""/>
<textarea name="6 - Övrigt / Other:" id="TextArea12" style="position:absolute;left:1038px;top:315px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:40" rows="0" cols="11"></textarea>
<input type="text" id="Editbox24" style="position:absolute;left:10px;top:340px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:41" name="7 - Datum / Date:" value=""/>
<textarea name="7 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea13" style="position:absolute;left:141px;top:340px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:42" rows="0" cols="83"></textarea>
<input type="text" id="Editbox25" style="position:absolute;left:845px;top:340px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:43" name="7 - Arbetarsign:" value=""/>
<input type="text" id="Editbox26" style="position:absolute;left:921px;top:340px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:44" name="7 - Antal timmar / Working hours:" value=""/>
<textarea name="7 -  Övrigt / Other:" id="TextArea14" style="position:absolute;left:1038px;top:340px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:45" rows="0" cols="11"></textarea>
<input type="text" id="Editbox27" style="position:absolute;left:10px;top:365px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:46" name="8 - Datum / Date:" value=""/>
<textarea name="8 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea15" style="position:absolute;left:141px;top:365px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:47" rows="0" cols="83"></textarea>
<input type="text" id="Editbox28" style="position:absolute;left:845px;top:365px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:48" name="8 - Arbetarsign:" value=""/>
<input type="text" id="Editbox29" style="position:absolute;left:921px;top:365px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:49" name="8 - Antal timmar / Working hours:" value=""/>
<textarea name="8 - Övrigt / Other:" id="TextArea16" style="position:absolute;left:1038px;top:365px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:50" rows="0" cols="11"></textarea>
<input type="text" id="Editbox30" style="position:absolute;left:10px;top:390px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:51" name="9 - Datum / Date:" value=""/>
<textarea name="9 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea17" style="position:absolute;left:141px;top:390px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:52" rows="0" cols="83"></textarea>
<input type="text" id="Editbox31" style="position:absolute;left:845px;top:390px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:53" name="9 - Arbetarsign:" value=""/>
<input type="text" id="Editbox32" style="position:absolute;left:921px;top:390px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:54" name="9 - Antal timmar / Working hours:" value=""/>
<textarea name="9 - Övrigt / Other:" id="TextArea18" style="position:absolute;left:1038px;top:390px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:55" rows="0" cols="11"></textarea>
<input type="text" id="Editbox33" style="position:absolute;left:10px;top:415px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:56" name="10 - Datum / Date:" value=""/>
<textarea name="10 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea19" style="position:absolute;left:141px;top:415px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:57" rows="0" cols="83"></textarea>
<input type="text" id="Editbox34" style="position:absolute;left:845px;top:415px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:58" name="10 - Arbetarsign:" value=""/>
<input type="text" id="Editbox35" style="position:absolute;left:921px;top:415px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:59" name="10 - Antal timmar / Working hours:" value=""/>
<textarea name="10 - Övrigt / Other:" id="TextArea20" style="position:absolute;left:1038px;top:415px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:60" rows="0" cols="11"></textarea>
<input type="text" id="Editbox36" style="position:absolute;left:10px;top:440px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:61" name="11 - Datum / Date:" value=""/>
<textarea name="11 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea21" style="position:absolute;left:141px;top:440px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:62" rows="0" cols="83"></textarea>
<input type="text" id="Editbox37" style="position:absolute;left:845px;top:440px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:63" name="11 - Arbetarsign:" value=""/>
<input type="text" id="Editbox38" style="position:absolute;left:921px;top:440px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:64" name="11 - Antal timmar / Working hours:" value=""/>
<textarea name="11 - Övrigt / Other:" id="TextArea22" style="position:absolute;left:1038px;top:440px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:65" rows="0" cols="11"></textarea>
<input type="text" id="Editbox39" style="position:absolute;left:10px;top:465px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:66" name="12 - Datum / Date:" value=""/>
<textarea name="12 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea23" style="position:absolute;left:141px;top:465px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:67" rows="0" cols="83"></textarea>
<input type="text" id="Editbox40" style="position:absolute;left:845px;top:465px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:68" name="12 - Arbetarsign:" value=""/>
<input type="text" id="Editbox41" style="position:absolute;left:921px;top:465px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:69" name="12 - Antal timmar / Working hours:" value=""/>
<textarea name="12 - Övrigt / Other:" id="TextArea24" style="position:absolute;left:1038px;top:465px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:70" rows="0" cols="11"></textarea>
<input type="text" id="Editbox42" style="position:absolute;left:10px;top:490px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:71" name="13 - Datum / Date:" value=""/>
<textarea name="13 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea25" style="position:absolute;left:141px;top:490px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:72" rows="0" cols="83"></textarea>
<input type="text" id="Editbox43" style="position:absolute;left:845px;top:490px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:73" name="13 - Arbetarsign:" value=""/>
<input type="text" id="Editbox44" style="position:absolute;left:921px;top:490px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:74" name="13 - Antal timmar / Working hours:" value=""/>
<textarea name="13 - Övrigt / Other:" id="TextArea26" style="position:absolute;left:1038px;top:490px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:75" rows="0" cols="11"></textarea>
<input type="text" id="Editbox45" style="position:absolute;left:10px;top:515px;width:125px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:76" name="14 - Datum / Date:" value=""/>
<textarea name="14 - Arbete / arbetsställe. Kind of work / workingspot:" id="TextArea27" style="position:absolute;left:141px;top:515px;width:698px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:77" rows="0" cols="83"></textarea>
<input type="text" id="Editbox46" style="position:absolute;left:845px;top:515px;width:70px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:78" name="14 - Arbetarsign:" value=""/>
<input type="text" id="Editbox47" style="position:absolute;left:921px;top:515px;width:111px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:79" name="14 - Antal timmar / Working hours:" value=""/>
<textarea name="14 - Övrigt / Other:" id="TextArea28" style="position:absolute;left:1038px;top:515px;width:128px;height:18px;border:1px #C0C0C0 solid;font-family:Courier New;font-size:13px;z-index:80" rows="0" cols="11"></textarea>
<input type="text" id="Editbox48" style="position:absolute;left:10px;top:551px;width:491px;height:21px;border:0px #C0C0C0 solid;background-color:transparent;color:#A52A00;font-family:Arial;font-weight:bold;font-size:16px;z-index:81" name="Underskrift" value=" Underskrift bekräftar att utfört arbete är godkänt för fakturering:" readonly="readonly"/>
<input type="text" id="Editbox49" style="position:absolute;left:10px;top:575px;width:456px;height:18px;border:0px #C0C0C0 solid;background-color:transparent;color:#A52A00;font-family:Arial;font-weight:bold;font-style:italic;font-size:13px;z-index:82" name="Signature" value="Signature is a confirmation that work/hours is appproved to be invoiced:" readonly="readonly"/>
<input type="text" id="Editbox53" style="position:absolute;left:10px;top:621px;width:217px;height:20px;border:0px #C0C0C0 solid;background-color:transparent;font-family:Arial;font-weight:bold;font-size:15px;z-index:83" name="Förtydligande / Clarification:" value="Förtydligande / Clarification:" readonly="readonly"/>
<div id="wb_Image7" style="margin:0;padding:0;position:absolute;left:1089px;top:639px;width:64px;height:64px;text-align:left;z-index:84;">
<a href="#" onclick="window.print();return false;"><img src="images/Printer-icon.png" id="Image7" alt="" border="0" style="width:64px;height:64px;"/></a></div>
<input type="submit" id="Button2" name="" value="Skicka kort" style="position:absolute;left:727px;top:676px;width:136px;height:25px;background-image:url(images/goemo_303_free_button16_0.gif);color:#FFFFFF;font-family:Arial;font-weight:bold;font-style:italic;font-size:13px;z-index:85"/>
<input type="reset" id="Button1" name="" value="Rensa kort" style="position:absolute;left:867px;top:676px;width:136px;height:25px;background-image:url(images/goemo_303_free_button16_0.gif);color:#FFFFFF;font-family:Arial;font-weight:bold;font-style:italic;font-size:13px;z-index:86"/>
<div id="wb_Text4" style="margin:0;padding:0;position:absolute;left:587px;top:5px;width:111px;height:16px;text-align:left;z-index:87;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Projekt / Project:</strong></span></div>
<input type="text" id="Editbox4" style="position:absolute;left:587px;top:22px;width:250px;height:20px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:16px;z-index:88" name="Projekt / Project:" value=""/>
<div id="wb_Text5" style="margin:0;padding:0;position:absolute;left:587px;top:55px;width:93px;height:32px;text-align:left;z-index:89;">
<span style="color:#000000;font-family:Arial;font-size:13px;"><strong>Vecka / Week:</strong></span></div>
<input type="text" id="Editbox5" style="position:absolute;left:587px;top:71px;width:250px;height:18px;border:1px #C0C0C0 solid;background-color:#FFFFFF;color:#00008B;font-family:Courier New;font-size:13px;z-index:90" name="Vecka / Week:" value=""/>
<div id="wb_Image5" style="margin:0;padding:0;position:absolute;left:998px;top:5px;width:171px;height:142px;text-align:left;z-index:91;">
<img src="images/perskort_0343.png" id="Image5" alt="" border="0" style="width:171px;height:142px;"/></div>
<input type="text" id="Editbox54" style="position:absolute;left:10px;top:638px;width:561px;height:18px;border:0px #C0C0C0 solid;background-color:transparent;font-family:Arial;font-style:italic;font-size:13px;z-index:92" name="1 - Förtydligande" value="Underskrift skall alltid utföras av underskriftsberättigad person hos Beställaren." readonly="readonly"/>
<input type="text" id="Editbox55" style="position:absolute;left:10px;top:654px;width:638px;height:18px;border:0px #C0C0C0 solid;background-color:transparent;font-family:Arial;font-style:italic;font-size:13px;z-index:93" name="2 - Förtydligande" value="Underskrift och godkännande innebär att arbetet blivit avsynat och godkänt tidsmässigt och kvalitetsmässigt." readonly="readonly"/>
<input type="text" id="Editbox56" style="position:absolute;left:10px;top:670px;width:451px;height:18px;border:0px #C0C0C0 solid;background-color:transparent;font-family:Arial;font-style:italic;font-size:13px;z-index:94" name="3 - Förtydligande:" value="Anmärkningar mot denna tidrapport SKALL göras omgående innan signering." readonly="readonly"/>
<input type="text" id="Editbox50" style="position:absolute;left:634px;top:542px;width:505px;height:21px;border:0px #C0C0C0 solid;background-color:transparent;font-family:Arial;font-weight:bold;font-size:16px;z-index:95" name="Datum för godkännande / Date and sign " value="Datum och beställarens godkännande / Date and sign of approval" readonly="readonly"/>
<input type="text" id="Editbox57" style="position:absolute;left:635px;top:567px;width:531px;height:18px;border:1px #C0C0C0 solid;color:#4B0082;font-family:Arial;font-size:13px;z-index:96" name="underteckna" value=""/>
<input type="text" id="Editbox52" style="position:absolute;left:718px;top:588px;width:326px;height:19px;border:0px #C0C0C0 solid;background-color:transparent;font-family:Arial;font-weight:bold;font-style:italic;font-size:15px;z-index:97" name="Behörig undertecknare / Authorized approval" value="Behörig undertecknare / Authorized approval" readonly="readonly"/>
</form>
</div>
<div id="wb_Image6" style="margin:0;padding:0;position:absolute;left:33px;top:796px;width:1183px;height:14px;text-align:left;z-index:103;">
<img src="images/bygg_0302.gif" id="Image6" alt="" border="0" style="width:1183px;height:14px;"/></div>
<div id="wb_Text11" style="margin:0;padding:0;position:absolute;left:344px;top:20px;width:565px;height:34px;text-align:left;z-index:104;">
<span style="color:#4B0082;font-family:Arial;font-size:29px;"><strong>Furniture Consulting AB - Tidrapport v.1</strong></span></div>
</div>
</body>
</html>


Was This Post Helpful? 0
  • +
  • -

#15 Bebbaboy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-October 10

Re: php form

Posted 22 October 2010 - 02:37 AM

Whare do i put the mail to command

Like this code:

 $mailto = '[email protected]';
      $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
      $subject = 'Personalkort';
      $message = 'FC AB - Personalkort:';
      $success_url = './tack.php';
      $error_url = './error.php';


This post has been edited by Bebbaboy: 22 October 2010 - 02:39 AM

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2