View Single Post
  #2 (permalink)  
Old 06-27-2007, 12: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
Only register_global is turned on that would allow you to do like this. If the
register_global is turned off, the $userName would not get the data from
the form.php. To solve this you should change your process.php code
to something like this and it will surely work:

PHP Code:
<?php 
  $userName 
$_REQUEST['userName'];
  print 
"<h3>Hi there, $userName!</h3>"
?>
But if you don't like to use $_REQUEST['userName'] everytimes. You can
turn register_global on in php.ini.

From siLenTz
Good luck with your PHP....

__________________

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
The Following User Says Thank You to siLenTz For This Useful Post:
HelloWorld (06-27-2007)