Solved

CGI AND FORMS

Posted on 1997-05-11
2
214 Views
Last Modified: 2013-12-25
Well, I currently own a site on GeoCities, but I'd like to switch to my local server.  All I want is a form that'll send me the info by mail.  I am pretty sure this requires a cgi scripts on my server.  But, I had the impression that these scripts are placed in some "cgi-bin" directory, is this correct?  I've seen no such directory, and my server doesn't provide any type of "automatic" forms like GeoCities.  I need step-by-step info concerning everything I just typed, please help.  I know there must be a way.

-BadMoon
0
Comment
Question by:badmoon
2 Comments
 
LVL 5

Accepted Solution

by:
icd earned 100 total points
ID: 1828006
When you say 'switch to my local server' I presume you mean you are going to change your Information Service Provider (ISP)? If so who are you moving to?

Be aware that many ISPs offer cheap or even 'free' web pages but do so by not providing the ability to run your own cgi scripts. I think the GeoCities is such. The best you can hope for is a number of standard scripts, one of which is usually called formmail.pl and this allows a form to be emailed to you for processing on your own machine. You would need to check with your provider if they offer this service.

If your ISP does allow you to upload your own scripts then you are quite right in assuming that there would be a 'cgi-bin' directory. How to upload your scripts,how to set the permissions etc would depend upon the provider. They should be able to advise you.

An alternative is that you could refer to a script running on another machine. For example, a form running on one server could in theory 'post' the information to a script running on another server. To do this however you still need to be able to upload a script or pursuade someone to 'host' your script for you. I believe that standard scripts such as formmail.pl however will detect where the posting came from and refuse to email it if it came from another host so I don't think you will be able to use the GeoCities scripts in that way.

I hope this answers your questions?
0
 

Author Comment

by:badmoon
ID: 1828007
Thanks, I'll check with my ISP
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to dynamically set the form action using jQuery.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question