i'm not a very experienced php-promgrammer, but i recently implemented a simple mailform in a website, using a very simple script that looks like this:
<?php @extract($_POST); $name = stripslashes($name); $from_adress = stripslashes($from); $to_adress = stripslashes($to); $subject = stripslashes($subject); $text = stripslashes($text); mail('[EMAIL PROTECTED]',$subject,$text,"From: $name <$email>"); // header("location:index.php?action=contact&state=sent"); ?>
lookup docs for the mail() function on php.net
you can include the text you want to send in the $text body of the message,
but i think you can also send it as an attachment if you include appropriate headers;
Content-Type: multipart/mixed;
and
Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="textfile.txt" Content-Disposition: attachment; filename=textfile.txt
qwertwrthws rthwrthwrthwrthw rthwrthwrthwrthrwt hwrthewrytjdgmjyujm sfgnsdfgndfghnsdf gnsdfgndfgndfgndf gndfgndfgnsdfghshn
again, i'm not a php guru, but i think it can work.. also, i think you can call the script from a local director projector, doesn't really need to be shockwave..
goodluck arri
On 04 apr 2005, at 09:08, nik crosina wrote:
it's not a Shcokwave app.
how woudl you sue php in htat instance though? send the data and compile the file onthe server, then email it?
thx nik
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]