LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-11-2010, 06:16 PM   #1
john2
Member
 
Registered: Aug 2004
Location: UK
Distribution: SolydK, Kubuntu, Mageia, OpenSUSE
Posts: 77

Rep: Reputation: 22
Parameter passing in HTML


If I have the following links in HTML
Code:
  <a href=lang.php?lang=cymraeg>Cymraeg</a>
  <a href=lang.php?lang=english>English</a>
and lang.php has a link to page2.html, how do I pass on the value of the lang parameter from lang.php to page2.html? The value needed is the one passed in to lang.php.
 
Old 06-11-2010, 09:14 PM   #2
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 115

Rep: Reputation: 16
Since you are using PHP, it could be done with it.

Code:
<a href=page2.php?lang=<?php echo $_GET["lang"]; ?>>Page2</a>
Please google for $_GET and $_POST for farther details.
 
1 members found this post helpful.
Old 06-11-2010, 09:14 PM   #3
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 115

Rep: Reputation: 16
Sorry for the duplicate post. My slow connection's bad.. !!

Please moderators delete this one.

Last edited by NightHorse; 06-11-2010 at 09:19 PM. Reason: Duplicate
 
Old 06-12-2010, 04:22 PM   #4
john2
Member
 
Registered: Aug 2004
Location: UK
Distribution: SolydK, Kubuntu, Mageia, OpenSUSE
Posts: 77

Original Poster
Rep: Reputation: 22
Problem solved - thanks.
 
  


Reply

Tags
html


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 kernel parameter to vms evil_empire Linux - Virtualization and Cloud 5 12-18-2009 09:57 AM
Passing a custom parameter to the kernel jkoshi Linux - Kernel 11 07-13-2009 11:54 AM
want to replace $ with \$ in the passing parameter siva512 Linux - Newbie 1 04-03-2008 12:24 PM
passing a file handle as a parameter in c nkoplm Programming 2 02-05-2008 08:28 PM
parameter passing mechanisms dhanakom Programming 2 09-01-2003 04:15 PM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration