0

Have a look at the following code. It is the only thing in the file...the following variables are defined outside the php file:

  • $required
  • $first_name
require_once("config.php");
if ($required)
{
	$require = explode(",",$required);
	for($n=0; $n<count($require); $n++);
	{
		$field = $require[$n];
		print $first_name;
		print $_POST[$first_name];
	}
}

When post data to this php file the value from the "first_name" field is printed - as shown above in the first print statement. However, the SAME data should be located in the $_POST array correct? So when I try to print the value (secont print statement) why does it show up blank? Nothing is there.

Any ideas? :(

Thanks,
JameZ

2
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by nikez
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.