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 08-30-2003, 09:37 AM   #1
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Rep: Reputation: 30
PERL:: passing variables with links?


I'm having tons of fun with perl!

this is my project so far:
workinprogress

i would like both links "home" and "admin" to run the same script
but pass a variable to the script, $MODE="home"; for home
$MODE="admin"; for admin.

yeah i'm new at this.

thanks alot
 
Old 08-30-2003, 09:49 AM   #2
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 33
In the place of < href="/cgi-bin/tfp2/tfp2.cgi" u can give
<href="/cgi-bin/tfp2/tfp2.cgi?mode=home" in case of home link
and <href="/cgi-bin/tftp/tftp2.cgi?mode=admin"

Then these values can be got by accessing the
$string = $ENV{'QUERY_STRING'}; in the CGI script......

I suppose this will solve ur problem.
 
Old 08-30-2003, 09:55 AM   #3
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Original Poster
Rep: Reputation: 30
that looks like it all right.
thanks to the prince of darkness
 
  


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
Passing variables to an include? Red Squirrel Linux - Software 4 09-23-2005 09:18 PM
PHP passing variables from url to ... latino Programming 3 08-31-2005 06:35 PM
Passing SSI variables between pages dubya Programming 2 07-05-2005 02:06 PM
passing variables to sed jjfate Programming 8 07-31-2003 04:15 AM
Passing variables in PHP???? vous Programming 3 03-20-2003 06:03 AM

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

All times are GMT -5. The time now is 05:39 AM.

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