Forum : How many ways can we pass the variable through between the pages?
Brief description  about Online courses   join in Online courses
View Sheetal  Panday 's Profile

How many ways can we pass the variable through between the pages?

Passing variable between pages..
Asked by Sheetal Panday | Nov 4, 2009 |  Reply now
Replies (2)
View manju s-reddy 's Profile
please answer to this question,

Given a line of text $string, how would you write a regular expression to strip all the HTML tags from it?
Nov 16, 2009
View teacher siliconindia 's Profile
Hi Sheetal,

You can do it by three ways:

1. Put the variable into session in the first page, and get it back from session in the next page.
2. Put the variable into cookie in the first page, and get it back from the cookie in the next page.
3. Put the variable into a hidden form field, and get it back from the form in the next page.
Nov 4, 2009