954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Form to Mail help!!!!!!

Hello guys? You have been very wonderful, I have some stress. I designed a site and send the form details to an email address but Image will not or can not be sent along the other details I don't know why. Please I need help.
This is what I did.With the line Aspirant photo to carry an image to the email address

<?php 
				$msg = "Message from Platform Form\n";
				$msg .= "Aspirant's Background:\t$_POST[aspirant_background]\n";
				$msg .= "Aspirant's choice:\t$_POST[aspirant_choice]\n";
				$msg .= "Aspirant's Offer:\t$_POST[aspirant_offer]\n";
                                $msg .= "Aspirant's email:\t$_POST[aspirant_email]\n";
                                $msg .= "Aspirant's Photo:\t$_POST[aspirant_photo]\n";
				$to = "info@helegrow.com";
				$subject = "Platform Submission";
				$mailheaders = "From: The site <> \n";
				$mailheaders .= "Reply-To: $_POST[sender_email]\n\n";
		        mail($to, $subject, $msg, $mailheaders);

				?>
utevwe
Light Poster
26 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

What do you expect to be in place of $_POST[aspirant_photo]?
Does it just contain an URL? The mail client will not automatically parse an image url to an image.

In this case you will have to send HTML headers, and use tags to show the image.

Excizted
Posting Whiz
309 posts since Oct 2009
Reputation Points: 94
Solved Threads: 27
 

first of all save all uploaded files to your website's folder.
Then give url of that location in img src.

$aspirant_photo = url of uploaded image $msg .= "Aspirant\'s Offer:".$aspirant_photo." \n";

vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You