>From your question, it seems you're more concerned with how to get
the file from the user to the server. To upload a file, you need the
following format for your web form:

<form action="upload.php" method="post"
enctype="multipart/form-data">
Upload file: <input type="file" name="upfile"><br>
<input type="submit" value="submit">
</form>

That will let you move the file to the server. How you email it from
their is a whole 'nuther matter.



--- szparag <[EMAIL PROTECTED]> wrote:
> ok.
>  
> i have those classes.
> but if it is possible i would like to send message with file
> attachment without using classes.
>  
> i know that it should look something like:
> in form : <input type=file name=attach>
>  
> in script run be something like:
>  
>  
>     if (is_uploaded_file($attach))
>     {
>  $headers .= "MIME-Version: 1.0\r\n"; 
>  
>  $headers .= "Content-Type: ".$attach_type.";
> name=".$attach_name.";
> Content-Disposition: attachment";
>  $headers .= "X-Attach: $attach"; 
>     }
>  
>  
> but it doesn't work.i miss something.
>  
> szparag
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


=====
Mark Weinstock
[EMAIL PROTECTED]
***************************************
You can't demand something as a "right" unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***************************************

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to