Variables from outside PHP

HTML Forms (GET and POST)

Esimerkki 8-2 .






Esimerkki 8-3 .










Huomaa :

Huomaa :

Esimerkki 8-4 .






IMAGE SUBMIT variable names

HTTP Cookies

Esimerkki 8-5 .




Dots in incoming variable names




Now, what the parser sees is a variable named $varname , followed by the string concatenation operator, followed by the barestring (i.e. unquoted string which doesn't match any known key or reserved words) 'ext'. Obviously, this doesn't have the intended result.

Determining variable types