Jeffreym17
asked on
Modifications in Open Source Codings
I want to add "Attach a File" field to attach any document in the below php script.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Tele Staff CRM</title>
</head>
<body>
<form action="<? echo $_POST['../itell/self']; ?>" method="post">
<strong>Company Profile: <br />
<br />
TME Name:</strong><br />
<input name="name" type="text"><br />
<strong>Client's Name:</strong><br />
<input name="clientname" type="text"><br />
<strong>Client's Email Address:</strong><br />
<input name="email" type="text"><br />
<strong>Client's Mobile Number:</strong><br />
<input name="mobile" type="text"><br />
<strong>Client's Web Site Address:</strong><br />
<input name="website" type="text"><br />
<input name="Send" type="submit" value="Send">
<input type="reset" />
</form>
<?
if (@$_POST['Send']=="Send")
{
$name=$_POST['name'];
$clientname=$_POST['clientname'];
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$website=$_POST['website'];
$subject = $name. " sends 20% Discounted OFFER from J Morgan.";
//This is the body section of the email and can be substituted for your message
$message= " Dear " .$clientname. ", \n\nAs per your telephonic conversation with our Tele-Marketing Executive " .$name. " please find below our company details.\n\nOur Company Website is http://www.jmorganinfo.com here you can go through our company profile.\n\n As a global leader in web hosting services J Morgan Technologie Pvt. Ltd. has come up with this unique offer especially for you. With this OFFER you SAVE EVERY YEAR 20% on your present web hosting charges. Besides you will get more features than your present web hosting plan.\n\nYou simply need to reply this email with your latest web hosting bill and within 48 hours you will receive a call from us helping you get your web hosting account set up with the discounted offer.\n\nWe believe in eating our competition, do you too? We are sure you do. So why wait, attach your latest web hosting bill and reply this email right now.\n\nFull Refund 30 Days Money Back Guarantee on Web Hosting.\n\nRegards,\nJ Morgan Technologies Pvt. Ltd.\nSuite 12, First Floor,\nNagree Building, Station Road,\nSantacruz West, Mumbai 400 054\nTele.: +91 22 3213 6720 / 3218 8414 / 3219 9162\nFax: +91 22 6725 3883\nwww.jmorganinfo.com\nwww.hostbaap.com\nwww.websitedesignerseo.com \n\n\nNote: This message was not sent unsolicited. It was sent through a form located at http://www.jmorganinfo.com If you believe this message was received on error, please disregard it.\n\n\nThe information you have shared with us: ".$mobile." and ".$website."\n\n\n".
$headers = 'From: hosting@hostbaap.com' . "\r\n" . 'Cc: hosting@hostbaap.com' . "\r\n".'Reply-To: hosting@hostbaap.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $message, $headers);
echo "You`ve sent information to: $email Thank you";
}
?>
<br />
<br />
<br />
</body>
</html>
ASKER
But how to add it in the above my given script.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
;-)
best regards, ~Ray
Open in new window