You are here: Re: form question « HTML « IT news, forums, messages
Re: form question

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&amp; file=somefile.exe?ver=2&amp;
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");
}
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация