Reply to Re: form question

Your name:

Reply:


Posted by Doug on 10/09/05 19:54

"Toby Inkster" <usenet200510@tobyinkster.co.uk> wrote in message
news:kp1n13-0m7.ln1@ophelia.g5n.co.uk...
> 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&amp;file=somefile.exe">somefile</a>

Is download.php the name of the web page it is on? ver is the string
'somefile'. What is the coding ver=2&amp mean?

I almost see the reasoning, Thanks, Doug Eilertson
>
>
> <?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
>

[Back to original 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

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