View Full Version : password script needed...security not really an issue

11-12-2006, 11:17 PM

I have a friend who wants to colect email addresses from visitors to his website. He really isn't looking for 'security', but is more interested in collecting emails and simple contact information.

Is there an easy way to have a short form (name, email address, phone number) which collects that info, then sends a password which they can use to log in?

Such as, I enter 'John Doe', 'jdoe@yahoo.com' and '555-1212', then I get an email (at jdoe@yahoo.com) with a password. The collected info should be either emailed to an admin, or better yet appended to a text file.


11-13-2006, 03:45 PM
If you really want to collect data, you are going to need a serverside language.

If you can't use a serverside language, all you can do is mailto, and that is very limited.


11-13-2006, 04:33 PM
This is a temporary measure until the site is redesigned (using PHP). For now, a mailto is fine; how would that be written up?

11-13-2006, 07:14 PM
specifically, I would like the following to occur...

>A form is filled out, requiring four fields, "Name", "Email", "Phone Number", and an "Opt-In" checkbox.
>The user submits the form, and two emails are sent.
>One is sent to (admin@site.com) with the form field info.
>The other is sent to the address from form field 'Email', and is a pre-written email with a password to access the site.

How would I write the script to do that?

Philip M
11-14-2006, 07:40 AM
As Alien51 said, you need a server-side language. This amounts to an auto-responder.