« January 2007 »
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

You are not logged in. Log in
Open Community
Post to this Blog

Helpful Links
Angelfire Home
Register Your Domain
Angelfire's Twitter
Angelfire's Facebook

Angelfire Club Blog
Need assistance and ideas from fellow Angelfire members to help build and manage your website? You've come to the right place!
To join this Community Blog, you must be an Angelfire member. Just click the "Join this Community" link, and start posting immediately.

Hint: When posting, select a topic that most relates to your question. (News, FrontPage, HTML Questions, etc...) This will help to keep the blog organized for everyone.

View Latest Entries

Sunday, 21 January 2007
Angelfire Team
Mood:  crushed out
Topic: CGI scripts
OK, I know you folks on the Angelfire staff don't provide any CGI support, but maybe if one of you has a little extra time on your hands you could do a couple thousand Angelfire users a huge favor by answering this one simple question. Why don't the Angelfire CGI scripts work like they are supposed too as shown in the documentation you provide? All I want to do is create a form and have visitor comments saved to a text file and then spit out onto an HTML page. According to whats on Your documentation this could be achieved by using the form handler, and the modules, AngelfirePage.pm, and AngelfireInsert.pm. The biggest problem here is YOU CANNOT SAVE ANYTHING TO A TEXT FILE as stated by your documentation. So what do we do, and could someone please post this fix to this problem? This has been an issue for a very long time and needs addressed.


Posted by Daymon at 4:10 PM EST | Post Comment | View Comments (9) | Permalink | Share This Post

Monday, 22 January 2007 - 8:03 AM EST

Name: cw

Daymon- have you tried changing the action of the form handler? AF and tripod share the same cgi set up and modules. At tripod it's possible to write form input to a text file this way...

<FORM ACTION="/cgi-bin/script_library/form_handler_file" METHOD="POST">

Since I only have a free account at AF I can't test this here but thinking it should work the same here as at tripod.

hope it helps

Monday, 22 January 2007 - 9:05 AM EST

Name: cw
Home Page: http://www.angelfire.lycos.com/popup/scriptlib/form_txt

Daymon- here's a page of AF instructions I just found re saving form input to .txt . If you've already seen this, my apologies.

Monday, 22 January 2007 - 10:47 AM EST

Name: al4/cheapest-service

I just noticed after you posted this that there is a different path for saving data to a text file...

/cgi-bin/script_library/form_handler_file

Where using a form to mail the information would be...

cgi-bin/script_library/form_handler_mail

Thanks for the heads up cw :) Now I'm off to see if this works.

P.S. Are there any other form handler paths?

Monday, 22 January 2007 - 11:12 AM EST

Name: al4/cheapest-service

WOOHOOOOOO!!!! That worked! Thanks CW! Not only did it work, but I was able to use a server side include to call the text file to an html page. This is pretty awesome since now I can have visitors leave comments about my site that is fully indexable by search engines and validates as XHTML :)

Monday, 22 January 2007 - 1:34 PM EST

Name: cw

WOOHOOOOOO!!!! x 2! Glad that worked for you. Only two actions I know of are mail and file. I'm not very proficient in cgi and am interested in how you output the text file to a web page. I can get a form to work to mail or text file but haven't gone beyond that. How hard was it to include the include and how is it done?

Monday, 22 January 2007 - 4:09 PM EST

Name: al4/cheapest-service

Very simple actually, but the file needs to be in the same directory as the page with the include "code" in it. So for example, in your main directory, you could put this code anywhere in the html to call the visitors.txt file.

#include virtual="visitors.txt"

Make sure at the beginning of the code you put a left pointing arrow, exclamation point and two hyphens no spaces, at the end add a space, two hyphens and a right pointing arrow. I couldn't ad those here because the code wouldn't show up if i did.

Word of caution. It's not a good idea to ask for personal info like e-mail address on a form if you intend to have it publicly viewable. Let me know how it works out, and thanks again :)


P.S. This is an excellent way to keep a templated site especially with menus.

Monday, 22 January 2007 - 4:28 PM EST

Name: cw

Thank YOU! Can't wait to give it a shot but it will be a few days. I'll let you know how it goes.

PS You can post code here if you replace the symbol for the left facing arrow < with the ascii code for it. It won't be usable as code on a web page if copied but at least you can get it posted for illustration purposes. Only the < needs to be converted in the code. The rest can stay as is

The ascii code for a left facing arrow is 4 characters with no spaces between them ..... & l t ;

Monday, 22 January 2007 - 4:38 PM EST

Name: al4/cheapest-service

OK then that's:
<!--#include virtual="visitors.txt" --›

:)

Monday, 3 October 2016 - 6:14 AM EDT

Name: "Anurag"
Home Page: http://voot-apkdownload.weebly.com/

View Latest Entries