Jump to content

guayaquil

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by guayaquil

  1. NOOOOO! don't tell me I wasted €31 on an outdated book. So it's the difinitely the REGISTER_GLOBALS? the issue? Bummer. This is not very encouraging. Who knows what else would be outdated in the book. Is there a reference for updated tags/comands, etc. for PHP 5?
  2. how can it be updated the title says PHP 5.
  3. Thanks cook, but since I am going to be using so many scripts from this book, shouldn't I just turn on Register_Globals?
  4. I recently bought [i]PHP 5/MySQL Programming for the absolute beginner,[/i] because I am. I have installed PHP 5.1.4 on my Mac OS X running Apache 1.3 and it works. When I call the info, the info page shows up. However, when I try any of the scripts from the book, they don't work. So is there a version conflct? or something about the author's syntax that's wrong? Here is the code as I use it: <html> <head> <title>Hi User</title> </head> <body> <h1>Hi User</h1> <? if (empty($username)) { print <<<HERE <form> Please enter your name: <input type = "text" name = "username"><br> <input type = "submit"> </form> HERE; } else { print "<h3>Hi there, $username!</h3>"; } //end ?> </body> </html> If it is really apparent to you, then I apologize. But I am only beginning and it's frustrating if I can't even use the code in a book for beginners. help. This is what I get: [img]http://www.el-cordovez.com/result.gif[/img]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.