Jump to content

Passing a line of text to next page.


ramu_rp2005

Recommended Posts

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?

Archived

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

×
×
  • Create New...

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.