Jump to content


Photo

sign up form


  • Please log in to reply
3 replies to this topic

#1 henners

henners
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 June 2006 - 02:15 PM

Hi,

I would like to create a sign up form for email for my website [a href=\"http://www.hennersp.com\" target=\"_blank\"]Hennersp[/a] how do i do this

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 17 June 2006 - 06:53 PM

do you already store user's info in a database or flatfile? if so then you can simply pull the info from there.

no info being stored anywhere right now? You need to setup a database or save the info in a flatfile (personally, i'd go for the database), with columns such as 'user' 'email' (although i guess depending on your needs you really only need an 'email' column).

then you need to make a form where the user inputs the information you want to get from them (like their email address), and make a script that will update your database with their information.

then you need to make another script where you can enter in whatever message you wish to send people, and the script will pull out all the email addresses from the database and email everybody your message.

if you don't have any idea whatsoever how to do any of this, then i suggest looking for a prefab script to do it for you - but even with that, you are going to need to know how to setup your database, unless you can find a prefab script that uses flatfiles for storage.

but if you really want to make your own script but you don't have any idea how to go about doing the above, then start with the basics. Read some tutorials on how to get info from forms, how to update your database, etc.. It might be easier for you to find a tutorial that uses a guestbook as an example script to learn from. It has a lot of the same things you will need, such as creating your table in the database, getting input from the user and storing it in the database, and retrieving the info later. All you would really need to do to convert a guestbook script to an email mailing script is remove some of the user input you don't need (like the actual guestbook comments) along with the columns that would hold the info, and you wouldn't need to display the info later on, just retrieve it. Then all you reall need beyond that is to use the mail() function to mail off your stuff. you can go to [a href=\"http://www.php.net/mail\" target=\"_blank\"]http://www.php.net/mail[/a] and see how to use it.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 henners

henners
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 June 2006 - 07:37 PM

can anyone help me create a script for it?

#4 klaroen

klaroen
  • Members
  • PipPipPip
  • Advanced Member
  • 34 posts

Posted 17 June 2006 - 07:42 PM

Well, creating your own sign up script ( I guess it's for a member system...) is not that easy if you do not know php to well...

So I recommend to you to download a sign up script at a website, and studie it well. Then reconstruct it to your own needs.

(PS: you will need a MYSQL database for a sign up script or you could always save your datas in a file, but I don't recommend that...)

Greets,
klaroen




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users