Do yourself a HUGE favour and start using _GET and _POST
right away on all queries. Also look into the well known problems
with addslashes with globals on while your at it. On php.net there
are good explernations and examples, look into the reslash() and
deslash() example.

One of theese days youll wake up and globals are off by default.
(Well, isnt PHP5 off?) The problem is, your are used to program
with globals on... If you have like 50 clients who wakes up with
globals off you are inn for a bad day (or week... )

When I first started with PHP I loved the globals, but the last year
they have really pissed me off mostly.

The best thing you can do is be sure your software works with
globals off, and then take it for a test drive with globals on.

It may sound trivial and annoying to read, but this is one of the
major "buggers" of programming PHP - so do it now, :) You wont
regret it I promise you.

Kim Steinhaug
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com

"Kenny" <[EMAIL PROTECTED]> wrote in message
> This could be due to register globals on/off
> Use
> print $_POST['action'];
> print $_POST['Name'];
> Kenny
> -----Original Message-----
> From: Rinku [mailto:[EMAIL PROTECTED]
> Sent: 20 June 2004 12:23
> Subject: [PHP-DB] value error in PHP form
> Dear All,
> I have installed PHP on WinXp. I am using MySql as Backend on Apache
> server.
> Now the problem is......
> I am writing this code :
> <html>
> <head>
> <title>
> </head>
> </title>
> <head>
> <body>
> <form name="frmname">
> <input type="text" name="Name" value="Rinku">
> <input type="submit" name="action"  value="Login">
> <?
> print $action;
> print $Name;
> ?>
> </form>
> </body>
> </html>
> Here I should get output as LoginRinku
> But I am getting nothing.
> Can any of you guide me on this........?
> Regards,
> Rinku
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to