Hi, I have 3 pages.
How do I use get method for page 3?
For page 2, I can get the variable from page 1 but how do I do the same for page 3?
I need to have get the same variable from page 2 to page 3?
Thanks in advance. Pls help me asap .
how to use get variable from page 1 for page 3
Page 1 of 16 Replies - 133 Views - Last Post: 26 January 2013 - 11:14 PM
Replies To: how to use get variable from page 1 for page 3
#3
Re: how to use get variable from page 1 for page 3
Posted 26 January 2013 - 08:11 PM
I am sorry. I am new to this forum. I do not know that I had click PM to you.
I am not submitting any forms. If I am not submitting any form do I still use session??
I am doing a website. I just wanna do get the variable. Thank for helping.
I am not submitting any forms. If I am not submitting any form do I still use session??
I am doing a website. I just wanna do get the variable. Thank for helping.
#4
Re: how to use get variable from page 1 for page 3
Posted 26 January 2013 - 08:15 PM
Quote
I am sorry. I am new to this forum. I do not know that I had click PM to you.
You didn't PM me. You must be referring to my signature, where I ask people not to PM me with coding help questions.
Sessions don't require forms, so you're good there. This is definitely what you want to use.
#5
Re: how to use get variable from page 1 for page 3
Posted 26 January 2013 - 08:26 PM
Is it necessary to use sessions.. If it is a simple, insignificant, value then it can be passed as a url parameter via a link:
or via a Javascript re-direct.
PHP can construct the link:
<a href="page3.html?somevar=42">Page 3</a>
or via a Javascript re-direct.
PHP can construct the link:
<a href="page3.html?somevar=<?php echo $somevar; ?>">Page 3</a>
This post has been edited by andrewsw: 26 January 2013 - 08:29 PM
#6
Re: how to use get variable from page 1 for page 3
Posted 26 January 2013 - 10:33 PM
macosxnerd101, on 26 January 2013 - 08:15 PM, said:
Quote
I am sorry. I am new to this forum. I do not know that I had click PM to you.
You didn't PM me. You must be referring to my signature, where I ask people not to PM me with coding help questions.
Sessions don't require forms, so you're good there. This is definitely what you want to use.
Can you give a example on how can I use session? Thanks
#7
Re: how to use get variable from page 1 for page 3
Posted 26 January 2013 - 11:14 PM
Check the tutorial I linked you to.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote







|