parsing - PHP 'get's' data without $_GET? -


i'm not sure if expected behavior. if host following on server

<?php print $stackoverflow;  ?> 

and have example.html wich contains:

<form action="http://pinguincyb.org/roc/opdracht1/lawl.php" method="post">  <input type="text" name="stackoverflow" value="example">  <input type="submit" value="submit"> </form> 

the page prints 'example', normal behavior ? shouldn't data unavailable untill

$stackoverflow = $_get["stackoverflow"]; 

it's old deprecated feature php called register globals. removed.

you should avoid it.

read manual using register globals

if have must disable it. can in php.ini, .htaccess, httpd.conf or .user.ini (since php 5.3)


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -