•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,590 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,417 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1785 | Replies: 48
![]() |
•
•
Join Date: Mar 2008
Posts: 26
Reputation:
Rep Power: 1
Solved Threads: 0
I Have visited a dozen of websites and registered with them but still none of them has helped me with my problem. I got a php script that i created that sends the results to a specific email address but the problem is that the attachments are not still working after countless attempts. THE ATTACHEDFILES DONT APPEAR IN THE MAIL.
SOME BODY PLEASE HELP ME .....................I REALLY NEED HELP AS SOON AS POSSIBLE.
HERE IS MY CODE PLEASE HELP WHERE HAVE GONE WRONG IN THE ATTACHMENTS PARTS.
SOME BODY PLEASE HELP ME .....................I REALLY NEED HELP AS SOON AS POSSIBLE.
HERE IS MY CODE PLEASE HELP WHERE HAVE GONE WRONG IN THE ATTACHMENTS PARTS.
php Syntax (Toggle Plain Text)
<?php $firstname = $_POST['FirstName']; $lastname = $_POST['LastName']; $day = $_POST['Day']; $month = $_POST['Month']; $year = $_POST['Year']; $Gender = $_POST['Gender']; $country = $_POST['country']; $Province = $_POST['Province']; $CityTown = $_POST['CityTown']; $emailaddress = $_POST['EmailAddress']; // Add file attachment to the message $message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$picture_name}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; $lookingfor = $_POST['LookingFor']; $interestedin = $_POST['InterestedIn']; $Duration = $_POST['Duration']; $tnc_agree = $_POST['tnc_agree']; $to = "ContiAds! <'datingavenue@contiads.co.za''mvity@yahoo.com'>"; $subject = "RE: New Dating Avenue SignUp!"; $body = "<html>". "<head>". "<title>Contact Request</title>". "<style type='text/css'>". "body,td,th {". "font-family: Geneva, Arial, Helvetica, sans-serif;". "font-size: 12px;". "}". ".style1 {font-size: 24px}". "</style></head>". "<body>". "<p align='center' class='style1'>ContiAds New Signup</p>". "<table width='498' border='0' align='center' cellpadding='5' cellspacing='0'>". "<tr>". "<td colspan='2' valign='top' bgcolor='#333333' height='2px'></td>". "</tr>". "<tr>". "<td width='104' valign='top'>Full Name:</td>". "<td width='374'>".$firstname." ".$lastname."</td>". "</tr>". "<tr>". "<td valign='top'>Date:</td>". "<td>".$Date."</td>". "</tr>". "<tr>". "<td valign='top'>Month:</td>". "<td>".$month."</td>". "</tr>". "<tr>". "<td valign='top'>Year:</td>". "<td>".$year."</td>". "</tr>". "<tr>". "<td valign='top'>Gender:</td>". "<td>".$Gender."</td>". "</tr>". "<tr>". "<td valign='top'>Country:</td>". "<td>".$Country."</td>". "</tr>". "<tr>". "<td valign='top'>Province:</td>". "<td>".$Province."</td>". "</tr>". "<tr>". "<td valign='top'>Email Address:</td>". "<td>".$EmailAddress."</td>". "</tr>". "<tr>". "<td valign='top'>Looking For:</td>". "<td>".$lookingfor."</td>". "</tr>". "<tr>". "<td valign='top'>Interested In:</td>". "<td>".$InterestedIn."</td>". "</tr>". "<tr>". "<td valign='top'>Duration:</td>". "<td>".$Duration."</td>". "</tr>". "<tr>". "<td colspan='2' valign='top' bgcolor='#333333' height='2px'></td>". "</tr>". "</table>". "</body>". "</html>"; //Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: ' . $email . "\r\n"; //$headers .= 'Cc: [email]myboss@example.com[/email]' . "\r\n"; if (mail($to, $subject, $body, $headers)) { ?> <script language="javascript" type="text/javascript"> location.replace("Sign%20Up%20Success.htm"); </script> <?php } else { ?> <script language="javascript" type="text/javascript"> location.replace("Sign%20Up%20Failure.htm"); </script> <?php } ?>
Last edited by peter_budo : Mar 30th, 2008 at 4:38 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Mar 2008
Posts: 26
Reputation:
Rep Power: 1
Solved Threads: 0
Should it be a screen shot or web file.......? You could see it on www.contiads.co.za/Entertainment main/ dating avenue / dating avenue sign up
its one of the forms of three i have the same problem with on the site.
its one of the forms of three i have the same problem with on the site.
•
•
Join Date: Mar 2008
Posts: 26
Reputation:
Rep Power: 1
Solved Threads: 0
I attached the screen shot to word document hope you able use it.
I don't know if this will also be helpful to you but here is the url address:
http://www.contiads.co.za/Ezone/Dati...0sign%20up.htm
regards
I don't know if this will also be helpful to you but here is the url address:
http://www.contiads.co.za/Ezone/Dati...0sign%20up.htm
regards
•
•
Join Date: Mar 2008
Posts: 153
Reputation:
Rep Power: 1
Solved Threads: 19
Its impossible without seeing your form - the link in your 3rd post is dead. The actual files would be much better.
Matti Ressler
Suomedia
Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Suomedia - Dynamic Content Management
•
•
Join Date: Mar 2008
Posts: 26
Reputation:
Rep Power: 1
Solved Threads: 0
Please try the one on the 7th post...... Or http://www.contiads.co.za/Ezone/Dati...Osign%Up.htm....... But the one on the 7th post is more trustworthy.
Regards
Regards
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Other Threads in the PHP Forum
- Previous Thread: Problem with page navigation
- Next Thread: Form not sending info...


Linear Mode