parsing value by URL
| From: | gowthaman ramasamy | Date: | Wed, 12 May 2004 11:42:30 +0000 |
| Subject: | parsing value by URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185972@lists.php.net to get a copy of this message | ||
hello list,
I have a problem in passing the value to another PHP script from the
first one. can any one help me to debug it.
I generate the following URL from first script to pass two variables to
next script. But the values are not passed on. But the URL invokes the
second script (ya with out parsing the variables).
NOTE: the url which is sent to browser is FINE and looks like this
http://gowtham/forphp/detailedresults.php?name=testrun_hetero_srtdout&firstfile=hello
But I am not able to print the variables $name and $firstfile
many thanks in advance
gowtham
scripts are
Script 1
______________________
<FORM ACTION="<?php echo $PHP_SELF ?>" METHOD="POST"
ENCTYPE="text/plain">
<?php
if(isset($_POST['submit']))
{
does many things
$detail_file='testrun_hetero_srtdout';
echo "<A
HREF=\"http:/gowtham/forphp/detailedresults.php?name=$detail_file&firstfile=$files\">
clik to see detailed page</A>"
}
script 2
_________________________________________
second script ... that is detailedresults.php
<?php
print $name;
print "$name";
?>
--
Ra. Gowthaman,
Graduate Student,
Bioinformatics Lab,
Malaria Research Group,
ICGEB , New Delhi.
INDIA
Phone: 91-9811261804
91-11-26173184; 91-11-26189360 #extn 314