web-page help??? at a standstill!!!

Yorkshire Tycoon

Free Member
Feb 13, 2008
71
0
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!

:)
 

Yorkshire Tycoon

Free Member
Feb 13, 2008
71
0
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! :)
 
Upvote 0

FireFleur

Free Member
Oct 29, 2008
1,880
440
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 :)
 
Last edited:
Upvote 0
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.
 
Last edited by a moderator:
Upvote 0

FireFleur

Free Member
Oct 29, 2008
1,880
440
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 protected]">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 protected]?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:[email protected]' +
'?subject=' + subject +
'&body=' + message;

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

if (win && win.open && !win.closed)
win.close();
}
 
Last edited:
Upvote 0

Latest Articles