Click to See Complete Forum and Search --> : I'm so Frustrated with Forms and CGI!!


red_of_rby
03-14-2003, 09:42 AM
Dear All,

I have such an annoying problem that I just can't cope with. No scripts or guides seem to work (me being stupid probably) so I'm asking if anyone can tell me in simplest form how to do this.

My website is on Lycos' Tripod server, and I FTP my pages to the web. I have a simple quiz on my site set out as a form.

I want to be able to get the results of the quiz posted to me OR to a text file in my CGI-bin, whether the user has an e-mail account on their computer. Most people do not have that - so the MAILTO: option is not what I want to use.

Firstly, what should my perl script look like (roughly) i can deal with all the variables etc, secondly how should I call it within the Form, and thirdly, where should I store the page within my web directory - does it go where it would normally, or do I need to put it in the CGI-bin.

The main problem I have I think is how Tripod deals with this sort of thing, so if anyone out there knows the way specifically then that will be great! All comments are welcome

:confused: rEd

pyro
03-14-2003, 10:23 AM
First, if you have no idea how to program in Perl, than you may want to look on http://cgi.resourceindex.com for a pre-made script.

The page that is calling the form can be in any directory on your server. Better off not putting it in the cgi-bin dir.

You will call it form your form with the action tag, something like this

<form name="myform" action="http://yourdomain.com/cgi-bin/formmailer.cgi" method="post">

red_of_rby
03-14-2003, 11:13 AM
Ok, thanks, I've found a script and I will play around with it on the weekend. I'll let you know my results!

rEd