Forums

This topic is locked

simple form is it possible ?

Posted 20 Jun 2003 08:58:58
1
has voted
20 Jun 2003 08:58:58 f r posted:
i want a simple respond for on my home page like this
visitor name
visitor e-mail
comments
whatever the visitor puts in i then want either stored or e-mailed to me , and after the visitor is done i would like him to be send to a thank you page ?
creating the form is ok but how do i make it work without any script or can i download a simple script for free HELP i have been tryting for days
tnx

Replies

Replied 20 Jun 2003 16:29:59
20 Jun 2003 16:29:59 John Dixon replied:
As long as you've got a database somewhere on your site, it's pretty straightforward - Access would be fine for a personal or low traffic site.

Set up your fields in Access that mirror the information you want to collect. Create the connection to the database (if you're new to this, and your ISP allows it, it's easiest to use a ODBC connection - in your control panels - and set up a System DSN. If not, you'll need to use a custom connection strings which is slightly more complex - you'll find help on the Macromedia site if you type in 'DSN-less connection' to the search engine).

Then, using the page that you've got your form on, select the 'Insert Record' server behaviour and use it to store the contents of the fields in your Access database. There's a field that allows you to redirect successful respondents to a Thank you page.

You might also want to use the 'Validate Form' behaviour to make sure that all the fields are filled in before they hit the submit button.

Edited by - dpages on 20 Jun 2003 16:30:40
Replied 20 Jun 2003 16:38:26
20 Jun 2003 16:38:26 John Dixon replied:
Just thought - there's a non-database alternative. Most ISPs will have a CGI-BIN Perl script called FormMail.pl (or something similar) which you can use to send the contents of the form to your email and then redirect them to a Thank you page.

Again fairly simple to set up - you'll need to open FormMail.pl in WordPad and edit a few settings, and you'll also need to set up some hidden form fields as well - there's advice on what to do at www.scriptarchive.com/formmail.html

Reply to this topic