You are here: Re: Getting variable names passed to form in php « PHP Programming Language « IT news, forums, messages
Re: Getting variable names passed to form in php

Posted by Rik Wasmus on 10/14/07 12:33

On Sun, 14 Oct 2007 14:27:29 +0200, <william.hooper@gmail.com> wrote:

> but what is this doing then:
>
> <html>
> <head></head>
> <body>
> <FORM ACTION=3D"test.php"

method=3D"post"

> <INPUT TYPE=3DSUBMIT NAME=3D"hello"
> VALUE=3D"Delete"> </FORM>
> </body>
> </html>
>
> it is certainly going to that test.php form with the ?hello=3DDelete
> post thing..

Which is a GET, not a POST.
http://www.tizag.com/phpT/postget.php

BTW: never, ever, use a GET as an action (alteration of data): GETS shou=
ld =

by bookmarkable and only display date, POSTS can alter data, and are not=
=

bookmarkable. Think for instance about a searchbot that will crawl all =

'delete' links to realize why.
-- =

Rik Wasmus

 

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

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