 |
 |
Emailing Forms Help?
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Hi! was hoping someone could help me out on this. I've decided to skip CGI and PHP mail scripts for my newsletter signup because I haven't got a clue how to configure them.
So, I thought I would simply use a link that would activate the users email client and fill in the subject and hopefully the body. I ran across a script to fill in the subject, but it seems to break when I use an image button instead of the canned html button:
Original:
[FORM>
[INPUT TYPE="button" VALUE="Click Here to Write to Me"
onClick="parent.location='mailto:spammer@earthling .net?subject=This goes to the subject'"]
[/FORM]
Revised:
[INPUT TYPE="image" src="../Images/SignUp_Text.jpg" onClick="parent.location='mailto:spammer@earthling .net?subject=This goes to the subject'"]
[/FORM][/td]
Anyone have a clue as to why the image button seems to only reload the page?
Also can anyone clue me in as to how to fill in the body of the email?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
i may be wrong but i believe you can do:
[form action="mailto:spammer@earthling.net?subject=subje ct goes here"]
and then have your image input submit the form (if you use image it will have to be with javascript in the onClick argument)
--will
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2000
Location: Pittsburgh, PA
Status:
Offline
|
|
if you're interested, my old ISP has a free (open) email server script thing that anyone can tap into...
go to http://www.avenirex.com/aroundoahu/ to see the signup form for addresses.
or this basic "comments" form:
http://www.avenirex.com/v4/contact.html
the code looks like this from the first one:
Code:
<form action="http://www.aloha.net/cgi-bin/hol_mail.cgi" method="POST">
</p>
<p><input type="hidden" name="to" value="yoruemail@email.com"><input type="hidden" name="sub" value="EMAILSUBJECT"><input type="hidden" name="home" value="HTTP://URLTOTAKEYOUBACKWHENDONE"><input type="hidden" name="result_page" value="URLOFPAGETOSAYTHANKS"><input type="text" name="from" value="enter email" size="11" font="Arial" face="Arial"> <input type="submit" name="Submit" value="Submit">
</form>
and, despite all that, it's really easy to configure  otherwise, you can just do simple mailto links even where the url is mailto:email@email.com?subject=enter+subject+here
or something like that
[edit] ahh crap, I can't get it to show you code without rendering it, but if you click "edit" on my message, you should be able to see it
(Last edited by Avenir; Jul 10, 2003 at 02:00 PM.
)
|

spike[at]avenirex[dot]com | Avenirex
IM - Avenirx | ICQ - 3932806
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Status:
Offline
|
|
Originally posted by Avenir:
Code:
[form action="http://www.aloha.net/cgi-bin/hol_mail.cgi" method="POST"]
[p]
[input type="hidden" name="to" value="yoruemail@email.com"]
[input type="hidden" name="sub" value="EMAILSUBJECT"]
[input type="hidden" name="home" value="HTTP://URLTOTAKEYOUBACKWHENDONE"]
[input type="hidden" name="result_page" value="URLOFPAGETOSAYTHANKS"]
[input type="text" name="from" value="enter email" size="11" font="Arial" face="Arial"]
[input type="submit" name="Submit" value="Submit"]
[/form]
We can't edit your posts  But it does show up when we click reply. Here it is in square-bracket form. Too lazy to type in the < >
|
|
Travis Sanderson
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2000
Location: Pittsburgh, PA
Status:
Offline
|
|
Originally posted by redJag:
We can't edit your posts But it does show up when we click reply. Here it is in square-bracket form. Too lazy to type in the < >
muchas gracias, that's what i shoulda done all along i guess... or a screen shot 
|

spike[at]avenirex[dot]com | Avenirex
IM - Avenirx | ICQ - 3932806
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |