PDA

View Full Version : web-page help??? at a standstill!!!


Yorkshire Tycoon
6th January 2009, 21:16
Hi there, with very little knowledge of websites I have managed to knock together a half decent web-site which is more than sufficent for me but I have come to a stand still as I need to allow visitors to submit their email address to me but I haven't got a clue how to do this??? :(

If anyone could help in the form of advise or even better some coding I would be extremally grateful and will owe you a favour.

Many thanks!

:)

tony84
6th January 2009, 21:20
http://www.hotscripts.com/PHP/Scripts_and_Programs/Mailing_List_Managers/index.html

Im sure something on there will help. If your after something very basic i would avoid mysql and go for 1 that saves the info into a .txt file (Flat something i think the terminology is)

tony84
6th January 2009, 21:24
http://www.programmingtalk.com/showthread.php?t=17187

that might be ideal?

Yorkshire Tycoon
6th January 2009, 21:27
Cheers mate will take a look! ;)

Yorkshire Tycoon
6th January 2009, 23:15
Not really been able to do much with the links provided as my knowledge of web-design is really basic and I don't really understand what I'm doing :redface:

Any help still appreciated especially if you can walk me through this step by step, many thanks! :)

FireFleur
6th January 2009, 23:35
Well first of all you have to mention the technology you have available.

So, the programming environment, and perhaps the webserver.

To get the information mailed to yourself you will need the webserver to have access to a mail server.

To store the information for later retrieval, you could use a flat file, which is just dumping the data to a file, either appending or using a system that creates unique file names.

There are lots of little scripts out there to do this, but be careful as some of them will not be secure, and it is at this point that most vulnerabilities are introduced into websites.

Generally this is the point where you hire someone to do it, they will probably charge their hourly rate, and should take about 4 hours tops, really for most it is a drop in, as most have the code to do this. But, the mailer is normally setup, so it could be as quick as one hour.

Ironically I am just doing one at the moment, but I will be building a standard form handling system alongside this at the same time, main site is getting an update :)

mooredale
6th January 2009, 23:41
I have come to a stand still as I need to allow visitors to submit their email address to me but I haven't got a clue how to do this??? :(

If anyone could help in the form of advise or even better some coding I would be extremally grateful and will owe you a favour.

Many thanks!

How do you want there emails? On your website or just collect them on your computer?
The simple way is for them to email you there email address.

FireFleur
6th January 2009, 23:46
Oh there is something else, depending upon the data you are collecting, you might also want to consider installing an SSL cert for the server. That way the data can be sent over an encrypted channel.

You might also want to consider a captcha, just in case of automated bots, though to be fair that is something that doesn't tend to cause too much problem until you have a high exposure.

The level of expertise required does suddenly jump when you go from a static site to something requiring server interaction with user input. What you want is simple, but not as simple as just constructing a page in an editor, and uploading it. Markup is one type of code, but it is not programming really.

If you just want them to email, I just noticed someone mention that, then you will have to reveal an email address and then it is just <a href="mailto:email@example.com">Email Me</a>

There are some ways to do this using JavaScript to prefill the message as well, and the user will have to have an email client associated by the browser.

var email = document.getElementById('email');
var address = email.value;

var link = document.getElementById('link');
var link.href = "mailto:email@example.com?subject=" + address;

You will have to id up the elements, and set an onclick event, you may actually have to open another window to do this, let me check, ok I have used this code combined with a form:
if (emailClient) {

subject = escape(subject + ' - via website');
message = escape(message);

var mailto =
'mailto:me@example.com' +
'?subject=' + subject +
'&body=' + message;

var win = window.open(mailto, 'emailer');

if (win && win.open && !win.closed)
win.close();
}

virtual public
7th January 2009, 05:57
Hi
If helping yourself is difficult,hire part time programmers on hourly basis

retailworld
7th January 2009, 09:55
Sent you a PM yorkshire tycoon...