homepage Welcome to WebmasterWorld Guest from 50.17.176.149
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Problems with CGI Script
cgi script problem
doomslagen




msg:3720028
 12:57 am on Aug 11, 2008 (gmt 0)

Hello. I am a webmaster and I am having a problem with my cgi script.

Rather than explain the problem, I will show it to you.

<removed>

I think that you will immediately see the problem.

[edited by: jatar_k at 1:41 am (utc) on Aug. 11, 2008]
[edit reason] no urls thanks [/edit]

 

perl_diver




msg:3720031
 1:10 am on Aug 11, 2008 (gmt 0)

The cgi-bin is not setup properly. Ask your hosting service to get that fixed for you. The fact that you can even display an html document directly from the cgi-bin indicates that it is a regular folder and not setup to run scripts.

doomslagen




msg:3720231
 12:04 pm on Aug 11, 2008 (gmt 0)

Ah but i have no hosting service...I do everything myself. And i will need to know how to set up the cgi bin correctly to run scripts in ubuntu linux, which is my server os.

perl_diver




msg:3720461
 5:24 pm on Aug 11, 2008 (gmt 0)

Ask on a forum that discusses the HTTP server you will be using, for example, Apache. Or google for a tutorial for "Setting up Apache on ubuntu" and look for how to get CGI scripts running. How you do it will depend also on the version of the HTTP server software you are using. If you are using Apache you can check on the apache website too.

[httpd.apache.org...]

doomslagen




msg:3720597
 8:42 pm on Aug 11, 2008 (gmt 0)

cgi-bin thing fixed.

New problem found.

Here is part of the source of that page:

<INPUT TYPE="HIDDEN" NAME="html_response" VALUE="Your request has been sent. We will be contacting you very shortly with a response. Thank you for your interest." >

With this in the form, the cgi script is supposed to return an html message that goes like this:

"Your request has been sent. We will be contacting you very shortly with a response. Thank you for your interest."

When i try to submit the form, instead of getting that response, I get a blank screen.

Granted, I no longer get the contents of the cgi file, but i still don't see the html response i am supposed to see.

[edited by: phranque at 10:31 pm (utc) on Aug. 11, 2008]
[edit reason] No urls, please. See TOS [webmasterworld.com] [/edit]

phranque




msg:3720689
 10:47 pm on Aug 11, 2008 (gmt 0)

welcome to WebmasterWorld [webmasterworld.com], doomslagen!

what is the response you get?
200 OK?
i would look in the script and find if and where it is handling the html_response input parameter and see what is or isn't happening there.

perl_diver




msg:3720716
 11:36 pm on Aug 11, 2008 (gmt 0)

Need to see the CGI script.

doomslagen




msg:3722085
 3:20 pm on Aug 13, 2008 (gmt 0)

The CGI script can be found at:

<snipped>

I hope i can get this over with soon...my beta launch is in a few days...

[edited by: coopster at 7:07 pm (utc) on Aug. 13, 2008]
[edit reason] no personal urls please TOS [webmasterworld.com] [/edit]

perl_diver




msg:3722274
 6:29 pm on Aug 13, 2008 (gmt 0)

We can not see the cgi script when you post a URL to the script. Plus this forum does not allow you to post URLS, so it will be removed as soon as a moderator sees it. Post the actual code.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved