•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,590 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,685 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3862 | Replies: 21
![]() |
•
•
Join Date: Mar 2005
Location: Everett, Wa (sub. north of Seattle)
Posts: 54
Reputation:
Rep Power: 4
Solved Threads: 0
Sorry if this is in the wrong forum, I couldn't figure out where to put it.
I am setting up a web form on my site to receive requests for services. Right now, because I don't know any other way, I am using the "mailto:" action to have the info from the forms sent to me. I would like to use cgi/perl (I think this is what I want) to have the info placed into a database. My web hosting package includes a "cgi bin" folder. I have messed around a little with setting up a guestbook, so I know it works, but what else do I need? I own OfficeXP and have MS Access. Can I link the info that is on my ISP server to a database on my computer?
Thanks,
David
(always willing/trying to learn)
I am setting up a web form on my site to receive requests for services. Right now, because I don't know any other way, I am using the "mailto:" action to have the info from the forms sent to me. I would like to use cgi/perl (I think this is what I want) to have the info placed into a database. My web hosting package includes a "cgi bin" folder. I have messed around a little with setting up a guestbook, so I know it works, but what else do I need? I own OfficeXP and have MS Access. Can I link the info that is on my ISP server to a database on my computer?
Thanks,
David
(always willing/trying to learn)
I don't know perl, but I bet if you go to google and search for "perl contact form" you will find something to work for you in the first 5 or so results.
Uh oh I think we might get another forum :p at Dani
Uh oh I think we might get another forum :p at Dani
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
I think that what you want to do, can not be done the way you want to do it. I researched a bit on using access with a Perl CGI, and this seems semi-possible, if the server that is hosting your CGI is running their server in windows with active perl. My guess is no, they are not. They are most likely using *nix system. Now, there is a solution to this, but it is probably more work than it's worth! Let me give you the break down.
You could have your Perl CGI Accept the user data, and write it to a database on the server, then you could even have it viewable to yourself on a web page. So you surf there, Log in, and view your "sign ups". Now to answer your actual question, you could build a program to connect to your server (through a number of means... FTP, HTTP, whatever), and retrieve that data from the server. That program then saves that data in an Access Database. So, User Enter Data, Server Saves The Data, A program on your computer requests the data, and saves it to an access database.
You could have your Perl CGI Accept the user data, and write it to a database on the server, then you could even have it viewable to yourself on a web page. So you surf there, Log in, and view your "sign ups". Now to answer your actual question, you could build a program to connect to your server (through a number of means... FTP, HTTP, whatever), and retrieve that data from the server. That program then saves that data in an Access Database. So, User Enter Data, Server Saves The Data, A program on your computer requests the data, and saves it to an access database.
•
•
Join Date: Mar 2005
Location: Everett, Wa (sub. north of Seattle)
Posts: 54
Reputation:
Rep Power: 4
Solved Threads: 0
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
•
•
Join Date: Mar 2005
Location: Everett, Wa (sub. north of Seattle)
Posts: 54
Reputation:
Rep Power: 4
Solved Threads: 0
•
•
•
•
Originally Posted by Comatose
well, you start by coding the CGI. If you would like... if you give me the relevant information, I can code it, or help you code it. The harder part will be coding sockets on the window side to retrieve the said information.
#!/usr/local/bin/perl
print ("Content-type: text/html\n\n");
...?
Right now I am in the self teaching mode and have found a few web sites that are helpful. If, however, I get totally bogged down I'll let you know. Thanks man.
So what I need first is to get the .cgi file up to my /cgi bin folder on my host server, then figure out how to get the info into a DB on my machine.
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
Right.
It all starts in baby steps. Every project starts in baby steps. When I first started programming, I had huge aspirations. I would take on a real huge project, and kept straying from the purpose. I'd keep coming up with new things to add to it, and wanting to change everything. Eventually, though, I learned that in order to complete a project successfully, you need to do it in steps. So, Start with making the web page. Ok, that's done. Now, build the CGI, and have the CGI save the information into a file. My personal opinion, is that due to simplicity, you could save the information that the user enters in a textfile. This will make it a little easier for the program on your computer to read the information that the CGI saved. I prefer a flat file, delimited by _:_ or Tabs, but whatever works for you.
Yes, CGI's usually start with: #!/usr/bin/perl. I go about printing the header a little different (I import CGI.pm), but, again, this is a matter of preference. If you have any questions, don't hesitate to ask.
It all starts in baby steps. Every project starts in baby steps. When I first started programming, I had huge aspirations. I would take on a real huge project, and kept straying from the purpose. I'd keep coming up with new things to add to it, and wanting to change everything. Eventually, though, I learned that in order to complete a project successfully, you need to do it in steps. So, Start with making the web page. Ok, that's done. Now, build the CGI, and have the CGI save the information into a file. My personal opinion, is that due to simplicity, you could save the information that the user enters in a textfile. This will make it a little easier for the program on your computer to read the information that the CGI saved. I prefer a flat file, delimited by _:_ or Tabs, but whatever works for you.
Yes, CGI's usually start with: #!/usr/bin/perl. I go about printing the header a little different (I import CGI.pm), but, again, this is a matter of preference. If you have any questions, don't hesitate to ask.
•
•
Join Date: Mar 2005
Location: Everett, Wa (sub. north of Seattle)
Posts: 54
Reputation:
Rep Power: 4
Solved Threads: 0
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
The hard part isn't importing the delimited text files into access. The hard part is getting the user entered information from the server to your PC. Once it's on your PC, you can have access import it, or make the program import it into access. Again, the tough part, is getting it from server to pc.
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Rep Power: 4
Solved Threads: 12
Sorry to interupt... but if you have a cgi based form on your site, have it use the mail functions send it to an e-mail account, then daily check the e-mail acount, strip the details and save as text files, then import? You can set up outlook or Outlook express to access the e-m,ail accounts....you can even set times to auto-check(I think!)....
There is even software out there to auto-strip emails for you, if you look hard enough!
There is even software out there to auto-strip emails for you, if you look hard enough!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- help with writing CGI!! (Perl)
- My CGI Script gives me this error...What am I missing? (Perl)
- can't change homepage from http://db105.com:81/cgi-bin/index.cgi?c=0 (Viruses, Spyware and other Nasties)
- Uploading files using HTTP/X and CGI (Shell Scripting)
- C++ and CGI (Shell Scripting)
- help - need coding for file attachment to a cgi file (Windows NT / 2000 / XP / 2003)
- help with cgi (Linux Servers and Apache)
Other Threads in the HTML and CSS Forum
- Previous Thread: IE6 minwidth/img issue
- Next Thread: accessability?



Linear Mode