Re: parsing value by URL

From: Date: Wed, 12 May 2004 11:52:34 +0000
Subject: Re: parsing value by URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185977@lists.php.net to get a copy of this message
On Wed, 12 May 2004 09:42 pm, gowthaman ramasamy wrote: > I have a problem in passing the value to another PHP script from the > first one. can any one help me to debug it. > > <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=\"?ÃÂ’^è7šïLºî > žæhttp:/gowtham/forphp/detailedresults.php?name=$detail_file&firstfile >=$files\"> clik to see detailed page</A>" } > second script ... that is detailedresults.php > <?php > print $name; > print "$name"; > ?> Perhaps "register_globals = Off" ? Here is one debugging hint... <?php echo '<!-- '.var_export($_REQUEST,true)).' -->'; // do whatever else ?> and view the source of the resulting page. Assumes PHP v4.1.0+ --markc

« previous php.general (#185977) next »