--- sumanth kiuumar <[EMAIL PROTECTED]> wrote:

> Hi Everybody,
>  
> I ve problem in sending mail with attachments.
>  
> For ex. There is a form with fields like name,age, current
> employer,expected salary and upload ur CV.
> Here if the user uploads his CV from his local machine then the mail
> should be send to the specified address with uploaded CV as attachment.
>  
> Can anyone send me the code for this.

There are some important parts to remember when setting up a form that
will transfer files to the server:

* Your form must have the following attributes set:
  method="post"
  enctype="multipart/form-data"
  for example, <form id="form1" mehtod="post"
enctype="multipart/formdata">

* Your input widget on your form must be set properly as well:
  <input type="file" enctype="x" name="user_cv">
  If you want to restrict what type of file may be chosen, this is done in
the enctype attribute here (replace 'x' with the enctype allowed).

* Your form processor must then be coded properly so that it will copy the
file from the form submission to the proper directory on the server.  This
directory must have permissions set so that it is writable by the form. 
This procedure is different across various types of servers, so I cannot
give you exact advice on how to do this.

Hope this helps point you in the right direction!


Michael Roush
[EMAIL PROTECTED]

"The power of the Web is in its universality. Access by everyone regardless of 
disability is an essential aspect." 
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/CefplB/TM
--------------------------------------------------------------------~-> 

The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to