ramu_rp2005 Posted May 8, 2006 Share Posted May 8, 2006 I've got a line as below. How can i pass this line of text to the next page on click of a button. [code]streamname,resolution,videopid,pcrpid,audiopid,audiotype,videotype,samplerate [/code] I've stored the above line in a variable $query1. Quote Link to comment Share on other sites More sharing options...
redarrow Posted May 8, 2006 Share Posted May 8, 2006 php.php[code]<? session_start();$php="I love php";$_session["php"]=$php;echo'<a href="php.php">get my message</a>';[/code]test.php[code]<? session_start();echo $php;?>[/code] Quote Link to comment Share on other sites More sharing options...
ramu_rp2005 Posted May 8, 2006 Author Share Posted May 8, 2006 I've a readonly text with a line of text stored in variable $query1, to be passed to next page on click of a button.How do i do it. I've already done the following to no use.creating readonly text box as below: [code]echo "<input readonly name=\"query1\" value=$query1 size=$qsize >"; [/code]I'm passing the value of query1 as:[code] <input type="hidden" value="$query1" /> <input type="submit" value="Run" > [/code]and i'm accessing in next page as,[code] $query1= $_REQUEST[query1]; echo "-------- Query1 is $query1-------"; [/code]but i'm unable to access the variable query1.don't the reasong.any help? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.