shoppingcart

shoppingcart - <? $a = date("YmdHi"); $s =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<? $a = date("YmdHi"); $s = $_POST[name]; while ( strpos($s,' ')!==false ) w { $s = str_replace(' ','',$s); }; function my_addslashes($data){ if(!get_magic_quotes_gpc()) { return addslashes($data); } else { return $data; } } function my_stripslashes($data){ if(!get_magic_quotes_gpc()) { return stripslashes($data); } else { return $data; } } $html=$_POST[mailPDF]; $mailBody=$_POST[mailBody]; $filename = "$a$s"; define('FPDF_FONTPATH','font/'); require('html2fpdf.php'); $pdf = new HTML2FPDF(); $pdf->Open(); $pdf->SetCompression(false); $pdf->UseCSS(); $pdf->UsePRE(); $pdf->AddPage(); ? $pdf->SetMargins( 10, 10 ); $pdf->WriteHTML(stripslashes($html)); $filename = "$a$s".$_POST[customerName]; $pdf->Output("pdf/$filename.pdf",'F'); $ $mailto = $_POST['mailTo']; $mailfrom = $_POST['mailFrom']; $subject = $_POST['mailTitle']; $cc = $_POST['cc']; $ XMail($mailfrom, $mailto, $cc,$subject, $mailBody, "pdf/$filename.pdf"); function XMail($from, $to,$cc, $subj, $text, $filename) { $f = fopen($filename,"rb"); $ $un
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/14/2009 for the course ITP 204X taught by Professor Dent during the Spring '08 term at USC.

Page1 / 2

shoppingcart - &lt;? $a = date(&quot;YmdHi&quot;); $s =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online