You are here: Re: connect to same page $_POST in <a> tag « PHP SQL « IT news, forums, messages
Re: connect to same page $_POST in <a> tag

Posted by Doug on 10/09/05 21:44

"JDS" <jeffrey@example.invalid> wrote in message
news:pan.2005.10.09.17.56.45.320237@example.invalid...
> On Sun, 09 Oct 2005 13:10:02 -0400, Douglas F. wrote:
>
> > Could it be written:
> >
> > <a href="./Download Files/somefile.exe">somefile>
> > "<?$_SERVER['PHP_SELF']?>?ver= somefile"> </a>
>
> No. Not sure what you are trying to do with that but you appear to be
> incorrectly using HTML and PHP to produce a mishmash. (No offense
> intended, just calling like I sees it).
>
> To send a variable/value from an HTML page to a PHP script, you must put
> the variable in a form or in the URL. An HTML form can use either the GET
> or POST methods; a URL uses only the GET method.
>
> PHP then takes whatever is sent and makes it accessible to the script in
> either ( ( the $_POST global array OR the $_GET global array ) AND the
> $_REQUEST global array ).
>
> For clarification, read this:
> http://us3.php.net/manual/en/tutorial.forms.php
>
> and this:
> http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.get
>
>
> Also, the original post has some obvious errors in it that could be typos.
> Did you retype it or copy and paste it from the real source?
>
>
>
> --
> JDS | jeffrey@go.away.com
> | http://www.newtnotes.com
> DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
>

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).

 

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

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