NULL value for variable
| From: | Narvaez, Teresa | Date: | Wed, 20 Feb 2002 23:32:28 +0000 |
| Subject: | NULL value for variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85637@lists.php.net to get a copy of this message | ||
Hello,
I am runnig php 4.1.1. In the configuration, register_globals is
ON.
I have two programs and I want to pass the value from fileId from one.php to
downloadfile.php. However, in downloadfile.php $fileId is NULL. What am I
missing? Thanks, -Teresa
one.php
<td width="33%" bgcolor="#FFDCA8" height="21">
<p style="margin-left: 10">
<font face="Verdana" size="1">
<a href="downloadfile.php?fileId=<?php echo $row["PicNum"]; ?>"
>
Download Now
</a></font>
</td>
</tr>
downloadfile.php
<?
global $fileId;
if ( ! is_numeric($fileId) )
die ("Invalid PictureNumber specified: ($fileId)");
?>