Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-09-2007, 04:33 PM   #1 (permalink)
Susanne
Junior Member
 
Join Date: Oct 2007
Posts: 1
Default html form output - help needed

Hiya,
I would like to set up a form that outputs a (comma) delimited file, but am not sure where to start.

Would an HTML form be sufficient?

I've just found a script on w3schools.com that I'm including at the end of this mail, and it seems to do the job, but I read somewhere else that putting a "mailto" on your site is a bad idea (spam harvest)?

So:

1)
If I need a delimited output file from my form, can I use the script below?

2)
What else would I need to do for it to produce a delimited outputfile, which is then emailed to me?

3)
It'd be ideal if the output from the form could just be added to a database straight away, which I then collect once a month or so (or which is emailed to me monthly) - but is it ever safe keeping a database with people's email addresses on a basic homepage?

Thanks in advance,
Susanne
Here's the HTML script I thought I could maybe use:

<html>
<body>

<h3>This form sends an e-mail to W3Schools.</h3>

<form action="MAILTO:waitinglist@nelgc.org" method="post" enctype="text/plain">
Name:<br />
<input type="text" name="name"
value="" size="20" />
<br />
Mail:<br />
<input type="text" name="mail"
value="" size="20" />
<br />
Comment:<br />
<input type="text" name="comment"
value="" size="40" />
<br /><br />
<input type="submit" value="Send" />
<input type="reset" value="Reset" />
</form>

</body>
</html>
Susanne is offline   Reply With Quote
Sponsored Links
Old 11-16-2008, 10:18 AM   #2 (permalink)
OpefeAvatttax
Junior Member
 
Join Date: Oct 2008
Location: Malta
Posts: 1
Send a message via ICQ to OpefeAvatttax
Default домашние порно коллекции

<a href="http://onepills.nnm.ru/">Купить Виагру</a>
<a href="http://5ksex.freehostia.com/map.htm">Карта порно сайта</a>
<a href="http://5ksex.freehostia.com/">Отборные порно ролики</a>
<a href="http://sexfr.freehostia.com/">порно видео с телепроекта дом2</a>
<a href="http://sexfr.freehostia.com/map.htm">Карта эротического и порно содержания сайта</a>
<a href="http://sexfast.freehostia.com/map.htm">секс первый</a>
OpefeAvatttax is offline   Reply With Quote
Old 11-16-2008, 06:20 PM   #3 (permalink)
fnacotton
Junior Member
 
fnacotton's Avatar
 
Join Date: Sep 2008
Location: USA
Posts: 55
Default Re: html form output - help needed

You've got several options that you could use. The first would be to use PHP to handle your form and append a text file that you have in a directory that is secured using the .htaccess file. Most hosting companies (at least the decent ones) have a way of creating password protected directories so you don't even have to mess with the .htaccess file.

The second option would be to store them in a database which for email addresses would be fine, at least I would think so. Without knowing the username and password to the MySQL database a bot or random user won't be able to connect to the database to submit queries on the data.

The third option would be to use the script you have to encrypt the email address using javascript.

I think simply handling it, and creating the email with PHP would be the easiest way to do it though. From there you can generate your email with the contents being in a comma delimited format. From there you can copy and paste it into a spreadsheet or database.

Try this link for a simple how-to
Form Handling with PHP

For the mail handler, if you wanted name, email address format the body part like this, and drop the fields you don't want.
Code:
$body = “$name, $email”;
__________________
FNA Cotton, fna
CSS help | cool t-shirts | portfolio
fnacotton is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:35 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums