Jump to content

Archived

This topic is now archived and is closed to further replies.

ramu_rp2005

Passing a line of text to next page.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.