>how can i do this? i have a java applet on my site which allows users to
>create their own drawings. i want to provide a "Email this to me" option,
>which will save the applet drawing and email it to the user. is there any
>way i can achieve this?

We have a parametric CAD system which runs as a Java applet. To save
drawings, it can try to do a local save, so we have the option to 'Save via
server' in which case the applet POSTs the data to a cgi program on the web
server and opens up a new window to handle the response. The file can then
be saved from the web browser.

Check out

http://www.dtonline.org/apps/object/app.exe?1&2&1&1&10&2&0

The cgi program is written in C, but an equivalent could be knocked up in
PHP in a few minutes. If you really need to email the drawing, then you
could get the PHP program to email the drawing as an attachment instead.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to