can anyone help me to send an attachment using a form. I have this code :
<input type="file" name="attachment">
$data = addslashes(fread(fopen($attachment, "r"), filesize($attachment)));
but it always comes up with error...
what am i doing wrong? i appriciate the help.
oh ya one more thing, what is the "content-type" for sending different kinds of file... ex: .jpg, .doc, .mp3 etc...
thx