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. Link to comment https://forums.phpfreaks.com/topic/9275-passing-a-line-of-text-to-next-page/ 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] Link to comment https://forums.phpfreaks.com/topic/9275-passing-a-line-of-text-to-next-page/#findComment-34196 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? Link to comment https://forums.phpfreaks.com/topic/9275-passing-a-line-of-text-to-next-page/#findComment-34200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.