Solved

Passing parameters to a CGI

Posted on 1998-02-25
1
170 Views
Last Modified: 2013-12-25
Hi!! I'm programming a CGi in C (DOS) and I'm trying to pass a parameter to it. I have to pass only 1 parameter.. if this is 1, the program makes an action, if it's 2, another and it it's 3, another. I'm trying for example: zzzz.exe?1, but when I tested the program printing argc variable, it prints a 3, and printing strings stored at argv, I couldn't get any paramater.... how can I do it?

Thanks in advance,
Jaime
0
Comment
Question by:DaThiN
1 Comment
 
LVL 5

Accepted Solution

by:
julio011597 earned 20 total points
ID: 1832038
Well, don't take it as an offence, but all you can do is studying CGI :)

A CGI program gets parameters from environment variables or from the standard input stream, depending on the FORM METHOD (GET or POST respectively).

Cheers.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple JavaScript form question 4 74
User profile Size Report 3 74
Questions about this React unit test 4 64
help with PowerShell script for registry permissions 8 83
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question