RON_ron Posted August 13, 2009 Share Posted August 13, 2009 It's a SUBMIT form - There are 5 checkboxes which are used to select 5 types of images. How to write my PHP code to send the selected images to the PHP and then back to [email protected] ? my current PHP script <?PHP $to = "[email protected]"; $subject = "subj.sbuj"; $headers = "From:" .$email."\r\n"; $headers .= "Bcc: $email\r\n"; $message = "Name: " . $thename; $message .= "\n\nCompany or Club Name: " . $thecompany; $message .= "\n\nAddress: " . $theaddress; $sentOk = mail("$to",$subject,$message,$headers); echo "sentOk=" . $sentOk; Link to comment https://forums.phpfreaks.com/topic/170027-serverside-scripting-to-send-and-receive-images/ Share on other sites More sharing options...
RON_ron Posted August 13, 2009 Author Share Posted August 13, 2009 Am I asking a tough question? Link to comment https://forums.phpfreaks.com/topic/170027-serverside-scripting-to-send-and-receive-images/#findComment-896982 Share on other sites More sharing options...
oni-kun Posted August 13, 2009 Share Posted August 13, 2009 Am I asking a tough question? I don't get what you mean. Do you mean send them to an e-mail? You cannot include an image with the mail() command. But you can include HTML to place an image in the mail.. such as... $message = '<img src="./images/1.gif"/> - I'm image one'; Such as that. But sending FROM [email protected].. I haven't a clue what you're meaning... Link to comment https://forums.phpfreaks.com/topic/170027-serverside-scripting-to-send-and-receive-images/#findComment-897010 Share on other sites More sharing options...
RON_ron Posted August 13, 2009 Author Share Posted August 13, 2009 First thanks for the reply! Secondly Sorry for the confusion. I'll explain it once again. *. [email protected] = my email. *. There are 5 images in my website where the customer could select all or any of those to be imprinted on the product we sell. When the customer selects any of the 5 images in my the website I need those selected image / images to be sent to the PHP server script and from there back to my email ([email protected]). Ps. The reson why I need the selected images back to my mail is the customer too will receive a Cc. It's nice to send the customer an image of the finish product!! Link to comment https://forums.phpfreaks.com/topic/170027-serverside-scripting-to-send-and-receive-images/#findComment-897037 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.