p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: RES: RE: RES: RE: RES: RE: switch problem


Message #1 by "Rodrigo Penloski - Som Livre.com" <Rodrigo@s...> on Tue, 29 Oct 2002 15:09:43 -0300
Thanks!
I'll take a look... :)

-----Mensagem original-----
De: Nikolai Devereaux [mailto:yomama@u...]
Enviada em: ter=E7a-feira, 29 de outubro de 2002 14:57
Para: beginning php
Assunto: [beginning_php] RE: RES: RE: RES: RE: switch problem



Wow.  Every single email on the list this morning is a register_globals
related
problem.


All variables sent through a URL parameter are GET parameters.  When
sending
data to the server using a form, you can specify the method (GET or
POST).

This link:

http://www.yoursite.com/index.php?yourvar=3DsomeValue


will pass the variable, yourvar, to the server.  It's value will be set
to
"someValue".

In PHP, you'd access this GET variable with $_GET['yourvar'].  (That's
the new
version of ($HTTP_GET_VARS).


For more information, I _strongly_ suggest you read the manual,
particularly
this section:

 http://www.php.net/security.registerglobals


nik



  Return to Index