Jump to content

Need PHP Help - Online Form For Client


gspringent

Recommended Posts

I'm been contracted by my employer to help develop a PHP script for a local hospital.  Below is an outline of what it needs to do...

 

Script needs to perform the following tasks, respectivley-

- Allow for up to ten (10) image uploads to a specified directory

- Once images have been uploaded, generate links to said images and e-mail the links to three (3) recipiants as specified in the form

- Send confirmation e-mail to the uploader whose address is also specified in the form

 

The image upload isn't a problem.  However, I don't know how to have it send an e-mail with the links to the specified addresses.

 

Can anyone help, PLEASE?

Link to comment
https://forums.phpfreaks.com/topic/115100-need-php-help-online-form-for-client/
Share on other sites

That helped with the E-Mail.

 

However, how do I get the filename from the uploaded file into the e-mail?

 

Ex. - I know the image will be uploaded to www.test.com/testimage/ , so how do I insert the file name of the uploaded image after the path in the e-mail?  A GET routine?  I'm lost here.....

You should read up on that http://us2.php.net/manual/en/features.file-upload.php

 

Essentially after the file(s) have been uploaded, you can access the file info with the $_FILES global.

$_FILES['userfile']['name'] is the name of the file

 

So you can just add that name to the string of your email body and send it along.

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.