Reply to Re: connect to same page $_POST in <a> tag

Your name:

Reply:


Posted by Doug on 10/10/05 18:28

"JDS" <jeffrey@example.invalid> wrote in message
news:pan.2005.10.10.14.02.14.214081@example.invalid...
> On Sun, 09 Oct 2005 14:44:15 -0400, Doug wrote:
>
> > I presented the original post in abreviated form. What is working now
is
> > the html:
> > <td width="140"><a href="./Download
> > Files/cbver169.zip">cbver169.zip</a></td> // for downloading the file
> >
> > I want to modify that line to connect to the php 'if(isset(_GET['ver'])
{
> > ...}' on the same page (upper block). 'ver' is whatever is the string,
in
> > this case (cbver169.zip).
>
>
> I still think you are not quite understanding how this all works. Also,
> and this will sound like nitpicking but it is not, do *NOT* use spaces in
> file or directory names within URLs. "Download Files" should really
> really really not have a space in it. But that is a separate issue.
>
> In any case, what do you mean by "modify that line to connect to the php"?
> Do you mean that you want to link to a PHP script in that line? There is
> no "ver" variable anywhere that I can see.
>
> Also, the PHP code has a clear typo in it -- "_GET" must start with a
> dollar sign -- "$_GET". Is this a typo in your posting or is this
> actually in the PHP code?
>
> Let's go back a few steps.
>
> What are you trying to do?
>
> --
> JDS | jeffrey@example.invalid
> | http://www.newtnotes.com
> DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
>

The existing web page https://st23.startlogic.com/~libertys/download.php has
downloads at the bottom of the page. When a user clicks on a link the
browser goes into the download mode and the user downloads the file. What I
am trying to do is run a MySQL query in PHP (same page because there is a
header call for the form data) to store the version string ("cbverxxx.exe")
and present date of download. The way the code exists to do this (download
the file) is as shown in my last post noted above.

On a Windows directory reference 'Download Files', spaces are allowed and it
has worked so far in all of the Windows code I have written.

[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

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