Solved

Passing parameters to a CGI

Posted on 1998-02-25
1
167 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now