View Single Post
  #3 (permalink)  
Old 12-11-03, 11:28 PM
netace netace is offline
New Member
 
Join Date: Dec 2003
Location: Mesa, AZ
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Form handling

Quote:
Originally Posted by godavis4
... I have to put up a simple HTML screen that captures basic information about a visitor in a SINGLE page site. This information needs to be saved, lets say to a text file residing on the web server, (right now it doesn't have to be a database although later it could be a database ?Foxpro? maybe) and then sends the visitor who filled out the form, a predetermined email message as an immediate followup to their filling out the screen form.

Right now I have some HTML code that was given to me. I've attached the sample code below at the bottom of this message. The best I can do is, using "common sense", -- logically modify sections, cutting and pasting logical modifications into this code. I'm not yet an HTML maven. I have this page displaying fine when I preview (of course with the proper embedded images present) but I don't know how to set it up so that when a visitor fills out the screen and clicks the button - all the followup steps described above in the previous paragraph are performed. (saves their info to file and sends them an preset email message)

I'm sorry if I'm stating this to simplistically, but this is the best I know how to describe what I need.

Again, thanks in advance for any help.

--Gary
Chris is right, HTML doesn't do the job -- it does PART of the job (via the <form> tag), but it's necessary to have perl or PHP or other code on the hosting server to handle the processing of the data.

There is a perl/CGI script called web2mail that can handle the e-mailing of the data to you, but you need a more sophisticated routine to stuff the data in a database. Probably want to use PHP to create an XML-type record to transmit to the server, then have the server-side software stuff the record in a MySQL or POSTGRES database. I suggest you try the PHP and MySQL forums -- they may have some canned routines to do what you need.

You may also find some helpful info at http://builder.com.com (a ZDNET site), http://www.php.net (the PHP source), and http://www.mysql.com (the MySQL source).

Hope these help!
Reply With Quote