Jump to content


Photo

Passing a line of text to next page.


  • Please log in to reply
2 replies to this topic

#1 ramu_rp2005

ramu_rp2005
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 08 May 2006 - 01:53 AM

I've got a line as below. How can i pass this line of text to the next page on click of a button.

streamname,resolution,videopid,pcrpid,audiopid,audiotype,videotype,samplerate


I've stored the above line in a variable $query1.

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 08 May 2006 - 02:49 AM

php.php
<? session_start();

$php="I love php";
$_session["php"]=$php;
echo'
<a href="php.php">get my message</a>';


test.php
<? session_start();
echo $php;
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 ramu_rp2005

ramu_rp2005
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 08 May 2006 - 02:58 AM

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:


echo "<input readonly name=\"query1\" value=$query1 size=$qsize >"; 

I'm passing the value of query1 as:


 <input type="hidden" value="$query1" /> <input type="submit" value="Run" > 


and i'm accessing in next page as,



 $query1= $_REQUEST[query1]; echo "-------- Query1 is $query1-------"; 


but i'm unable to access the variable query1.don't the reasong.any help?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users