|  | Posted by Doug on 10/09/05 21:44 
"JDS" <jeffrey@example.invalid> wrote in messagenews: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] |