Page 1 of 1

How to pass parameters from one page to other using links

Posted: Fri Mar 13, 2009 4:46 am
by Safwi
Can some one help in passing parameters from one page to another using Links. I don't want to use submit buttons on form.

Safwi

Re: How to pass parameters from one page to other using links

Posted: Fri Mar 13, 2009 4:57 am
by papa

Code: Select all

<a href="page.php?var1=x&var2=y&var3=z">link</a>

Re: How to pass parameters from one page to other using links

Posted: Sat Mar 14, 2009 3:51 am
by Safwi
thanks alot. I am new to web programming and am sure that u wouldn't be harsh with my stupid questions.
can u plz. tell me how to receive the value on page2.php. can i receive it through $_get['var1'] as with forms or through some other way.


Safwi

Re: How to pass parameters from one page to other using links

Posted: Sat Mar 14, 2009 3:58 am
by Benjamin
Forum Rules wrote: 11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
You may also want to read:
  1. General Posting Guidelines
  2. Posting Code in the Forums
  3. PHP Manual
  4. PHP Tutorials

Re: How to pass parameters from one page to other using links

Posted: Sat Mar 14, 2009 5:17 am
by susrisha
yes you can receive them as get variables.