View Single Post
  #5 (permalink)  
Old 06-27-2007, 08:37 AM
siLenTz's Avatar
siLenTz siLenTz is offline
Jr. Programmer
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Posts: 87
iTrader: (0)
siLenTz will become famous soon enoughsiLenTz will become famous soon enough
Let me explain you by examples which is more easy to understad.
If register_global is off the your code would be like this:

Code:
<form method="post" action=".">
   <input type="text" name="userName">
   <input type="submit">
</form>

<?php
   $userName = $_REQUEST['userName'];
   print $userName;
?>
But with register_global turned on you can do like this:
Code:
<form method="post" action=".">
   <input type="text" name="userName">
   <input type="submit">
</form>

<?php
   print $userName;
?>
From siLenTz
Hope you are understand....

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote