Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Web Design Question!

Web Design Question!
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2003
Location: Toronto, Canada
Status: Offline
Reply With Quote
Dec 11, 2003, 05:20 PM
 
I'm trying to figure out how to implement a 'email photo to friend' button in a web site I'm designing. Does anyone know how to do this.. do i need to know a special programming language, do i need to find a javascript? or another type of script...

is there a web tutorial for this?

any help would be definitely appreciated!

thanks,
emalen
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 11, 2003, 08:23 PM
 
You would need to create a CGI script of some kind. You can write CGI scripts in practically any language -C, C++, Perl, Python, AppleScript (if your server runs on a Mac), Unix shell scripting, and so on- but some are more suited to this task than others, and some of them will require your server to specifically support that language, and some places won't allow you to use CGI scripts at all.

I'm going to recommend, however, that you not do this. Unless you are extremely careful in how you design the script, spammers will find a way to hijack it for their own Nefarious Purposes (and they will find your site; they always do). Write some more basic scripts first, learn about secure mail form design, get your feet under you, and then go about it. Or have someone else write it for you; that's a perfectly viable route to take.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status: Offline
Reply With Quote
Dec 16, 2003, 08:27 AM
 
You don't need to use an unsafe CGI to accomplish this.

Research PHP.

It's a pretty easy language to learn, and you could do something basic like send a picture to a friend with it.

Tom
     
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status: Offline
Reply With Quote
Dec 18, 2003, 12:24 PM
 
I agree that PHP is the way to go. It's relatively easy to write code that takes an image, sesizes it, and attaches it to an email, assuming that you have the correct libraries installed and an email server.

You could also check these out.

I'm working on a photo hournal sofware that provides a web interface for uploading pictures, and then automatically makes thumbnails and enters the info into a database. So I'm sure adding an email capability to aalready written pages would be fairly easy.
We need less Democrats and Republicans, and more people that think for themselves.

infinite expanse
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:33 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2