Gossamer Forum
Home : Products : DBMan : Customization :

Running a cgi script generated from html.pl

Quote Reply
Running a cgi script generated from html.pl
I'm having a problem running a script generated from html.pl that I have added. After someone performs a search they are returned with their results and there is an image they can click on to record that item into an array. The action is

input type="image" src="lb.gif" border="0" name="ImageID" value="C3005" action="lightbox.cgi"

But the problem I am having is that a logon screen is popping up when I click to perform that action. I noticed that after a person performs a search in the http header fields that the user is now assigned a "default" user id.

How do I prevent this logon from popping up? And how would I allow the script or action to perform? Thanks.
Quote Reply
Re: Running a cgi script generated from html.pl In reply to
 
Quote:
the problem I am having is that a logon screen is popping up when I click to perform that action.

You're saying that, when you call the other cgi script, you are getting the DBMan login page?

I don't understand. (I think I've been on the forum too long today. My brain is getting muddled.) Possibly if you gave us the URL to your database so we could see what was happening, we might be able to help.



------------------
JPD





Quote Reply
Re: Running a cgi script generated from html.pl In reply to
You came close to the full URL, but not quite. Smile

You have

action="www.photoresearchers.com/tests/database/lightbox.cgi"

Try

action="http://www.photoresearchers.com/tests/database/lightbox.cgi"


------------------
JPD





Quote Reply
Re: Running a cgi script generated from html.pl In reply to
I still get the same error.
Quote Reply
Re: Running a cgi script generated from html.pl In reply to
The url is http://photoresearchers.com/tests/database/

type something like "boys" in the search field. After the images are displayed there is a little "LB" above the upper left hand corner of each image. It should then give you a login screen after you click on the action.
Quote Reply
Re: Running a cgi script generated from html.pl In reply to
Try putting the entire URL of your cgi script into action=. That might work. Smile


------------------
JPD





Quote Reply
Re: Running a cgi script generated from html.pl In reply to
I tried adding the whole url of the script and I still get the same result. Do I have to setup permissons for a default user? Do you have any other suggestions?
Quote Reply
Re: Running a cgi script generated from html.pl In reply to
What happens if you just put

Code:
<FORM>
<input type="image" src="lb.gif" border="0" name="ImageID" value="C3005" action="http://www.photoresearchers.com/tests/database/lightbox.cgi">
</FORM>

on an html page? Does it work then?


------------------
JPD





Quote Reply
Re: Running a cgi script generated from html.pl In reply to
I pasted the code on it's own page and it works. But when I try the same thing when it is generated in html.pl it doesn't work.
Quote Reply
Re: Running a cgi script generated from html.pl In reply to
I have one other suggestion. If this doesn't do it, I don't have any other thoughts.

Instead of

Code:
<FORM>
<input type="image" src="lb.gif" border="0" name="ImageID" value="C3005" action="http://www.photoresearchers.com/tests/database/lightbox.cgi">
</FORM>

try

Code:
<FORM action="http://www.photoresearchers.com/tests/database/lightbox.cgi">
<input type="image" src="lb.gif" border="0" name="ImageID" value="C3005">
</FORM>



------------------
JPD





Quote Reply
Re: Running a cgi script generated from html.pl In reply to
It works!!! Thank you so much JPD. I didn't think about putting the action in the form tag. You have been a great help. Keep up the great work!
Quote Reply
Re: Running a cgi script generated from html.pl In reply to
Yay!!! Smile

But I've learned something today, too, so we all win!


------------------
JPD