Posted by Toby Inkster on 10/09/05 11:43
Doug wrote:
> How can a form with a hidden <input type be triggered without the submit
> button type or other button? I am calling a download file href and want it
> to access a PHP GET or POST on top of the same page of code.
<!-- this is your HTML page -->
<a href="download.php?ver=2&file=somefile.exe">somefile</a>
<?php
// This is download.php
if (isset($_GET['ver']))
{
// do stuff
}
$redirect = "http://www.example.org/downloads/{$_GET['file']}";
header("Location: $redirect");
?>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|