Re: form question




"Toby Inkster" <usenet200510@xxxxxxxxxxxxxxxxx> wrote in message
news:k0ip13-3ad.ln1@xxxxxxxxxxxxxxxxxxxx
> Doug wrote:
>
> > What is the coding ver=2&amp mean?
>
> The URL is "download.php?ver=2&file=somefile.exe". However, HTML has
> certain "special characters" which must be "escaped".
>
> For example, if you're writing some maths and need to use the "less than"
> sign, you shouldn't just use "<", because browsers might interpret it as
> the start of a tag, so you use "&lt;" (this type of code is called an
> "entity reference".
>
> Similarly, when you want to use an "&" as part of normal text, or part
> of a URL, you can't use "&", because browsers might interpret it as the
> start of an entity reference. So you need to write it as "&amp;" instead.
>
> So the URL "download.php?ver=2&file=somefile.exe" is linked to like this:
>
> <a href="download.php?ver=2&amp;file=somefile.exe">
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact
>
It works alright for the download, but how can I pass the 'name' of the
version string of the html? This is what I have so far:

if (isset($_GET['ver']))
{
$vers = "./download.php/{$_GET['name']}";
require_once('./MyStuff/mysql_connect.php');
$query2 = "INSERT INTO versiondl(Version, Date)
VALUES('$ver', NOW())";
$redirect = "./Download Files/{$_GET['file']}";
header("Location: $redirect");
}
?>


.



Relevant Pages

  • Re: form question
    ... > Doug wrote: ... if you're writing some maths and need to use the "less than" ... > "entity reference". ...
    (alt.html)
  • Re: Where to start?
    ... Doug and I agree. ... I don't think a minor difference in punctuation style ... are atypical of Gwyn's writing and that they need revision. ... I meant Gwyn should have edited his message a tad before he sent ...
    (sci.crypt)
  • Re: DADA vs Calculus or maths in general
    ... Meghan Noecker wrote: ... but there's a heck of a lot of writing and work to be done. ... > that he does not typically go overboard in essay responses. ... >>DADA is not a comparable discipline at all to any sort of maths study ...
    (alt.fan.harry-potter)
  • Re: Message from Doug
    ... My name is Denise, I am Doug's Landlord. ... Doug told me which one to write ... to,.Hopefully I am writing to the right group. ... The Doctors said he got 30 stitches on his head and fractured his skull. ...
    (alt.support.chronic-pain)
  • Re: DADA vs Calculus or maths in general
    ... but there's a heck of a lot of writing and work to be done. ... reader), and because he is a poor reader, he also felt the need to go ... that he does not typically go overboard in essay responses. ... >DADA is not a comparable discipline at all to any sort of maths study ...
    (alt.fan.harry-potter)