Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Headers not working for CGI pages

Quote Reply
Headers not working for CGI pages
Help would be greatly appreciated!
I am using the Enhanced Template mod, and I am making use of the <%include whateverpage.txt> calls.
It is working well in all pages except my search.html, add.html, modify.html, and email.html.

When I place the <%include header.txt%> , the header file appears, but the submit buttons on the above mentioned pages only redirect to the home page- no search is performed, no one can subscribe, no error pages are returned.It just goes back to the home page.

Only when I removed the <%include header.txt%> call in these pages, would the forms work. I place the include header call right after the body tags.

Yet, the footer, and side nav bar calls appear with no problem.

The header and footer files both contain tables.
I do not wish to use any SSI whatsoever if I dont have to. All permissions are set properly, and all files called are located in the template directory

Please check out http://sistasearch.com (not www.sistasearch.com) to see what i mean.

Thanks
These forums have been very helpful, except there is very little info on headers and footers. (Yes, I've read and applied Bobsie's post, and Anthros posts).And I've been searching the forums for about 5 days.

Any ideas on what the problem may be?
Or can anyone clarify it this has been addressed previously?

I am having serous problems with all of my html template pages that are called by cgi's (add.html, modify.html, email.html, etc.)

The forms on these pages only work when I remove the <%include header.txt%> I am using the enhanced template mod.
All permissions are set properly. All template files are in the template directory. I even tried to set globals in the site_html_templates.pl file as per Bobsie's post, and although the header appeared when called, the forms on these pages just would not work.
Quote Reply
Cant use header in CGI called template pages-HELP! In reply to
Hi, I am using the enhanced template mod. For some reason,
my forms wont work when I include the <%include header.txt%> call in my pages. All of the other calls work except for header.txt.

My header file does have a drop down menu that uses an external redirect.cgi file. I tried putting that redirect file in my cgi-bin/links directory and that did not work.
(The drop down menu works, but not any of the forms)

I have an inkling that this is the problem, as all other calls are working. Is there something I can do besides remove this redirect.cgi?

Any help wouldbe greatly appreciated!




Quote Reply
Re: Headers not working for CGI pages In reply to
oops. my bad.

The errors were due to an html error on my part in the header.txt file. I didnt close the form for the dropdown box within my header.txt file which made all the forms within my template pages screwy.

But you guys figured that,dint ya!

Thanks for looking though.