Been while since I post my last blog and playing with php.
So to remind my self about getting value from POST and GET in php.
When you have url like http://lame.com/script.php?duh=ownotagain
You can just straight echoing inside the script like
echo $duh;
Just notice that the newer php, that thing doesn't work anymore.
For the url that I've mention above, that mean it use the GET method, if you want assign the duh variable to you php script, you gotto do like this
$duh = $_GET['duh'];
echo $duh;
It then will give you ownotagain on your browser.
Yeah I know.... I'm totally moron just figure that out :D
Ummmm, 1,5 week again before I return home, so still have to deal with this damn cold winter
Guess, I'll miss Zagreb coz this is really nice town to be around
So to remind my self about getting value from POST and GET in php.
When you have url like http://lame.com/script.php?duh=ownotagain
You can just straight echoing inside the script like
echo $duh;
Just notice that the newer php, that thing doesn't work anymore.
For the url that I've mention above, that mean it use the GET method, if you want assign the duh variable to you php script, you gotto do like this
$duh = $_GET['duh'];
echo $duh;
It then will give you ownotagain on your browser.
Yeah I know.... I'm totally moron just figure that out :D
Ummmm, 1,5 week again before I return home, so still have to deal with this damn cold winter
Guess, I'll miss Zagreb coz this is really nice town to be around
Comments