Solved

Passing parameters to a CGI

Posted on 1998-02-25
1
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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