troubleshooting Question

Modifications in Open Source Codings

Avatar of Jeffreym17
Jeffreym17 asked on
3 Comments1 Solution390 ViewsLast Modified:
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" "">
<html xmlns="" xml:lang="en" lang="en">
<title>Tele Staff CRM</title>
<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" />
if (@$_POST['Send']=="Send")
$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 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\\\ \n\n\nNote: This message was not sent unsolicited.  It was sent through a form located at 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:' . "\r\n" . 'Cc:' . "\r\n".'Reply-To:' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $message, $headers); 
echo "You`ve sent information to: $email  Thank you";
<br />
<br />
<br />
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros