Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

CGI AND FORMS

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
badmoon
Asked:
badmoon
1 Solution
 
icdCommented:
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
 
badmoonAuthor Commented:
Thanks, I'll check with my ISP
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now