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
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? :(