aircooled57 Posted December 3, 2007 Share Posted December 3, 2007 i run a site which has just gone live and i wish to have a field where users can type in there email adress and click a submit button which adds them to a mailing list, i am not sure how to create this and dont know what web language would be best to use as presently my homepage is written in html which is relative to a template Quote Link to comment Share on other sites More sharing options...
trq Posted December 3, 2007 Share Posted December 3, 2007 PHP can do this quite easily. You might start by googling php mailing list for a tutorial. Quote Link to comment Share on other sites More sharing options...
Bramme Posted December 3, 2007 Share Posted December 3, 2007 indeed, i'd do it with php too... when the user click the submit button, run a script that checks if it's a valid email address, then add it to a database, and then create a second form (that only you can access), with the necessary things for your email, next, loop through your database with emails and send that mail to everyone... Might get a little slow though if you have a lot of subscribers... Quote Link to comment Share on other sites More sharing options...
revraz Posted December 3, 2007 Share Posted December 3, 2007 If you already have a existing DB with users, you can probably just add a column to indicate they want the email or not, that way you don't have to require them to enter info again. Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted December 3, 2007 Author Share Posted December 3, 2007 i have tryed googling it but the coding of it doesnt make sense to me as i have never used php before at all Quote Link to comment Share on other sites More sharing options...
revraz Posted December 3, 2007 Share Posted December 3, 2007 May be easier to use a 3rd party site then to manage the mailing list. There are quite a few free ones out there and you can easily add a link to your site to let them register and remove themself. Quote Link to comment Share on other sites More sharing options...
Bramme Posted December 3, 2007 Share Posted December 3, 2007 I'd be surprised if there aren't any decent mailing list scripts you could just install yourself... Quote Link to comment Share on other sites More sharing options...
revraz Posted December 3, 2007 Share Posted December 3, 2007 He may not even have access to PHP or MySQL. Quote Link to comment Share on other sites More sharing options...
Bramme Posted December 3, 2007 Share Posted December 3, 2007 He may not even have access to PHP or MySQL. good point. aircooled57, do you know if your host supports PHP and do you know if you have access to some sort of control panel with phpmyadmin for example? Quote Link to comment Share on other sites More sharing options...
revraz Posted December 3, 2007 Share Posted December 3, 2007 I've used this site in the past http://www.coollist.com/ Quote Link to comment Share on other sites More sharing options...
trq Posted December 3, 2007 Share Posted December 3, 2007 i have tryed googling it but the coding of it doesnt make sense to me as i have never used php before at all Do you want to learn or just get a simple script installed. If the former, theres a nice free book in my signiture. Otherwise, your probably in the wrong forum. Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted December 3, 2007 Author Share Posted December 3, 2007 i am with a host called lcn - lowcostnames Quote Link to comment Share on other sites More sharing options...
trq Posted December 3, 2007 Share Posted December 3, 2007 Is it php enabled? Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted December 3, 2007 Author Share Posted December 3, 2007 yes it is php enabled Quote Link to comment Share on other sites More sharing options...
adam291086 Posted December 3, 2007 Share Posted December 3, 2007 Do you have a database? Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted December 3, 2007 Author Share Posted December 3, 2007 no i do not have a database , how do i create one? Quote Link to comment Share on other sites More sharing options...
adam291086 Posted December 3, 2007 Share Posted December 3, 2007 LOL If you have no knowledge then revraz May be easier to use a 3rd party site then to manage the mailing list. There are quite a few free ones out there and you can easily add a link to your site to let them register and remove themself. Just google it and you will find loads of managers. If you want to create your own you are going to have to learn php and MYSQL Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted December 3, 2007 Author Share Posted December 3, 2007 i would like to learn php an mysql as it will be beneficial for ideas i have for my website in the future. can anyone help me with this mailing list problem Quote Link to comment Share on other sites More sharing options...
adam291086 Posted December 3, 2007 Share Posted December 3, 2007 well if you want to learn then this is what you need. You will need a database, check your web host can support a database. If so then you will need to create a table that stores the users email address. Then create your form and set the form to send to a php file. In this php file all you will need to do is insert into the table the email address. That is just the basic, you will also need some validation rules. http://www.w3schools.com/php/ is what i learned with. But start off by looking into your host. I am afraid people here wont write the code for you as they dont have the time. But if you start something then we can help push you in the right direction and fix errors. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 3, 2007 Share Posted December 3, 2007 Well then the first thing you have to do is start learning PHP and MySQL. Pick up a book at a bookstore or amazon and start learning, or find some online resources. Once you start learning about variables, arrays, loops and such, start thinking of how they will work with your new Mail script that you will make. Start writing the code, post what you have and someone will help you with what you are doing wrong. But no one will write it for you here, but you can try the Freelance forum. Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted December 3, 2007 Author Share Posted December 3, 2007 ok i will get learning and will post my code when complete for ammendments Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.