LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Michael Shannon <[log in to unmask]>
Wed, 10 Oct 2001 17:00:21 +1000
text/plain (45 lines)
>
>I am familiar with html and forms and all. I am just having a
>problem with
>coding a simple add user button that will ask only their
>e-mail address and
>add them to the list as Anonymous as name. Could anyone help
>me with that.
>

There are a couple of ways to do this.  You could simply drop a hyperlink
into your page that looks like this:

<ahref="mailto:[log in to unmask]">Subscribe to the list</a>

Insert your LISTSERV address and listname in the appropriate places.  When
they click on the link it will open a new email message and populate To:
field and the message body with the appropriate text.  Then all they need to
do is send it.  The downfall with this is you have no direct control over
the From: field which is what LISTSERV reads to determine the subscriber
address.  If you're pretty good with CGI there's most likely a simple way to
create a form that captures the input and then formats a mail message with
the correct From: address.  I'm not a UNIX expert so I can't help with that
(judging from your earlier emails I'm assuming that's the platform you're
using).

The second option depends on whether or not you have web access enabled.
You could whip up a fairly simple javascript that would capture the email
address from a form input and then pass it to WA.EXE.  This would accomplish
everything in one hit.  I don't have any sample code to give you right now
but if you'd like to see something mail me privately and I'll see what I can
put together.

Chazzozz!!

Michael Shannon
Webmaster
[log in to unmask]

"Before you can grow old and wise you must first survive being young and
stupid." - Ancient Proverb

Note: Opinions expressed on this list are my own and do not reflect the
views, opinions or position of my employer.  If swallowed, seek medical
advice.

ATOM RSS1 RSS2