Posted by Doug on 10/10/05 21:43
I really thank you for the insight into this. The following is what I ended
up with that works great:
<!-- HTML page -->
<a href="download.php?ver=2& file=somefile.exe?ver=2&
name=somefile">somefile</a>
<?php
// This is download.php
if (isset($_GET['ver']))
{
$vers = "{$_GET['name']}";
require_once('./MyStuff/mysql_connect.php');
$query2 = "INSERT INTO versiondl(Version, Date)
VALUES('$vers', NOW())";
$result = @mysql_query ($query2); // Run the query.
$redirect = "./Download Files/{$_GET['file']}";
header("Location: $redirect");
}
?>
[Back to original message]
|