View previous topic :: View next topic |
Author |
Message |
tygerbug
Joined: 01 Dec 2005 Posts: 3
|
Posted: Thu Dec 01, 2005 6:20 am Post subject: Email an image to "a friend?" |
|
|
Need some help here. Need to write a script that sends a comic strip to a "friend's" email address via a form. Also need to include a livejournal in a site.
I know very little about scripting, and in the tests I've done, the server hasn't responded to my ASP and PHP commands.
Which is why I'm posting this in the client side forum - however, if it can't be done on the client side, I'd like some information on how to do this with ASP or PHP or whatever.
This is a page of comics.
http://greenhousecomics.com/comics.htm
We're going to put every comic into its own popup window, like this (from another comic site):
http://www.rustletheleaf.com/media/comic-page-rustle.asp?strip=rustle051120.jpg
And there will be a link to "email this strip to a friend!"
So I need users to be able to click that link, and some HTML will be emailed to their friend, with that comic strip included and a little message.
Anyway, I don't think my server can use server side scripting.
Like, these tests have resulted in nothing. Just quick "include" tests, and a test to see if the site could display date/time.
<?php
include ("http://www.livejournal.com/users/earthworm59");
?>
<!--#include virtual="http://www.livejournal.com/users/earthworm59" -->
<!--#config timefmt="%A, %d %B %Y"--><!--#echo var="DATE_LOCAL"-->
Any help here would be nice.
tygerbug at yahoo.com is the email. _________________ http://orangecow.org |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Thu Dec 01, 2005 9:54 pm Post subject: |
|
|
You cannot send an email using server-side script. You need to use either ASP, PHP or any other server-side programming environment.
Are you getting errors when you run your test ASP and PHP scripts?
Thanks, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
tygerbug
Joined: 01 Dec 2005 Posts: 3
|
Posted: Fri Dec 02, 2005 4:04 am Post subject: |
|
|
Yes, I'm getting blank pages, nothing happening. So clearly the server I was using wasn't set up to use that script.
Regardless, if I WAS able to get PHP or ASP going, what script would I have to input to get this to work? _________________ http://orangecow.org |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
|
Back to top |
|
|
tygerbug
Joined: 01 Dec 2005 Posts: 3
|
Posted: Thu Dec 08, 2005 7:16 pm Post subject: |
|
|
That's a very simple script, but not knowing the language I'd need a bit more help with constructing a more complex script that emails the exact image on the page .... Hm. _________________ http://orangecow.org |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Sun Dec 11, 2005 3:22 pm Post subject: |
|
|
You can send the message in HTML format and you can insert the iamge as you would on a regular HTML page. _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|