LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2005, 10:17 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
CGI question


I have an html page that starts a series of calls to CGI routines which build and return more HTML documents calling other CGI routines. I can't figure out a simple way to check that the data is passed correctly between these.
There is 2 type of data passed, one in
<input type .."hidden"..> and another in a
<input type .."radio"..> list and then the returned selection.

Perhaps someone with this kind of experience can give a few tips or advices on how to proceed.

Thank you very much for your help.
 
Old 07-19-2005, 03:29 PM   #2
ChasH.in.NC
LQ Newbie
 
Registered: Jul 2005
Location: Stokes County, NC
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
Lightbulb

In the form tag, set the method to "get". Then the value of the tags will be in the resulting URL.
 
Old 07-19-2005, 04:15 PM   #3
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
Well, a solid design is a starting point

You could write a function called 'ValidateInput' which gets called first. I tend to program using objects now, so I would probably have a constructor that does similiar tasks.

Web programming can get ugly if you don't take careful time to walk through an application, because theres a few ways data can be passed between pages (sessions,cookies,GET data,POST data). I like drawing flowcharts and what are probably known as 'use cases' even though I've never formally read about them. Its important for me to visualize what data is being passed to what pages so I know what data I'm working with in each page/script/whatever.
 
Old 07-19-2005, 11:29 PM   #4
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Thank you both.
To ChasH.in.NC, this is a very good idea, and simple too.
To lowpro2k3: my problem with a function is how to have the function warn me since the screen is not available, I've tried this and didn't get the message I wanted to display.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache CGI question stakhous Linux - Software 3 07-15-2005 09:51 PM
Perl/CGI question jacksmash Linux - Software 3 11-06-2003 02:23 PM
Apache CGI Question clefler Linux - Software 2 11-04-2003 06:46 PM
A question of CGI KittyWu Linux - Software 5 07-02-2003 02:38 AM
CGI question doodah Programming 1 05-22-2001 09:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration