Wednesday, February 23, 2005

Php without global vars using GET

I post here about work in php without global vars, now I offer you another post but using GET as a METHOD, not POST. Here's the code:

<?
if ($_GET['table']) {
$table = $_GET['table'];
echo "You wanna select this: $table";
}else {
echo "You didn't say a word";
}
?>

Tuesday, February 22, 2005

I've discover pello's web, he offers us a comic strip : c0der's where you may find a couple of carachters (C++ developer, Perl coder, Java fan, ...) working at an ISP, the one I like is Perl coder, for sure.

Let my highlight some of them:

Monday, February 21, 2005

Silent PC in five simple steps

Bigruin offers us five simple steps to a quieter PC, they all very easy to accept, not allways so easy to achieve:

  1. Colling fans
  2. Cases
  3. Fan Controllers
  4. Power Supplies
  5. Noise / Vibration Isolators

Since a lot of people use to keep on their PC's for downloading or to work as a firewall / switch / router, it may be interesting.

Free Techs and Programming Books

I don't remember how, but some I come to http://techbooksforfree.com/, a place to find links to free avalaible book on computing and programming issues. You may find books about system administration (like those about FreeBSD) or those those book php programming ...

Php without global vars

I was trying a simple form write in php. As usual, I try it in the old way, look for an example and then copy and paste... unsuccessfull ...
After become a little bit crazy I remember those changes done by php team around register globals in 4.2.0

I look around for a while, specially reading php documentation and I found very good examples and explanations.For example at register globals documentation page I found inspirer contributions. Now I offer you mine own code:
if ($_POST['submit']) {
...
$name = $_POST['name'];
...
echo "You say $name";
}else{
...
echo "<form>Nombre:<input type="text" name="name">
<input type=...>
</form>";
}

I hope it would help somebody...