Using Forms Created in DWMX2004

message from Netscape Man on 19 Jul 2004
(Okay - I posted this in the Macromedia Forums, and for the life of me
can't understand why some postings get duplicated here, in Google
Groups. However, just in case it hasn't....here it is....)

Having been able to produce all kinds of forms in DWMX2004 what do I
do with them now? How do I 'use' with within a website? What
additional code do I need? How do I use this code in respect of the
forms I 've created? In what folders do I place the code so that I can
FTP it all up when I FTP the site from withinn DWMX2004?"

I'm being told about Form CGI code. What I do with the Form.CGI code
once I've got it? Do I insert it into the HTML file with the form? Is
it an "attachment", like a CSS style sheet? Which folder does it go
into, (if it is a separate file), with respect to the DWMX2004 root
folders, for FTPing up to the host server?

Any help would be gratefully appreciated. Thank you.

(Apologies if this gets duplicated in the Macromedia Forums - I don't
know why this happens :) )
 
Murray *TMM* replied to Netscape Man on 19 Jul 2004
This *IS* the Macromedia forum.

There is only one. It is mirrored *BY MACROMEDIA* between the nntp forum
(this one) and the webforum (the other one, probably). It is also mirrored
with varying degrees of success by a whole host of other providers. Most of
the time, there are problems when trying to post from them.

Without a doubt, this is the best place to be, if you have reliable access
to NNTP.

There are two basic ways to process form data -

1. Use mailto:name@domain.com as the action of the form
2. Use a server-side scripting method to a) harvest the form's data, b)
process it in some manner, e.g., enter it into a database, c) formulate and
send an email to one or more email recipients, and d) redirect the visitor
to some ending page

Method 1 is quite simple, and is also the least reliable. It depends both
on your visitor having an email client already installed on their computer -
this eliminates public computers - and on that email client responding to
the mailto call (Eudora on the Mac is a good example of one that does not).

Method 2 is the preferred method, since it eliminates the problems of method
1, but it means that you have to grapple with server-scripting somehow (ASP,
CF, PHP, perl, etc.).

So - let's start with that. Which method do you want to use?
 
Murray *TMM* replied to Murray *TMM* on 19 Jul 2004
Then you would need some server script to process the form's data and send
the email. Ask your host what they supply.
 
Murray *TMM* replied to Murray *TMM* on 20 Jul 2004
Here are good tutorials on how to use Formmail with your pages. Perhaps
they will answer some of your questions -

http://www.vendel.info/tut/formmail.html
http://people.unt.edu/jhinuk/Form_FAQ.htm
 

Archived message: Using Forms Created in DWMX2004 (Macromedia Dreamweaver Web Design)