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

Your name:

Reply:


Posted by JDS on 10/09/05 20:56

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/

[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

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