Jump to content

Serverside scripting to send and receive images?


RON_ron

Recommended Posts

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;

Am I asking a tough question?  :confused:

 

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...

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!!

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.