[thelist] Q on PHP...

jsWalter jsWalter at torres.ws
Mon Mar 15 15:08:11 CST 2004


OK, I'm missing something here.

I have a simple, basic form.

I'm sending it to a PHP "reflector"...

<?php 

    print "Posted variables: <br>";
    //reset ($_POST);
    while(list($key, $val) = each ($_GET))
	{
		if ( is_array($val)  )
		{
			print $key . " = ";
			while(list($key1, $val1) = each ($val))
				print $val1 . ' ';
			print "<br>";
		}
		else
			print $key . " = " . $val . "<br>";
	}

echo '<hr>';

echo '<pre>';
foreach ($_GET as $key => $value) {
echo $key . " = " . ($value) . "<br />";
};
echo '</pre>';

?>

This is what it gives me...

Posted variables: 
data_emp_co_name __________id= = station#
data_emp_addr_1 __________id= = addr-1#
data_emp_addr_2 __________id= = addr-2#
data_emp_city __________id= = city#
data_emp_st __________id= = st#
data_emp_zip __________id= = zip#
data_emp_fax __________id= = fax#
data_emp_web __________id= = web#
data_emp_name __________id= = name#
data_emp_phone __________id= = ph#
data_emp_email __________id= = email#


data_emp_co_name
__________id= = station#data_emp_addr_1
__________id= = addr-1#data_emp_addr_2
__________id= = addr-2#data_emp_city
__________id= = city#data_emp_st
__________id= = st#data_emp_zip
__________id= = zip#data_emp_fax
__________id= = fax#data_emp_web
__________id= = web#data_emp_name
__________id= = name#data_emp_phone
__________id= = ph#data_emp_email
__________id= = email

------------------------

I don't understand this.

I was expecting...

Posted variables: 
 data_emp_co_name = station#
 data_emp_addr_1 = addr-1#
 data_emp_addr_2 = addr-2#
 data_emp_city = city#
 data_emp_st = st#
 data_emp_zip = zip#
 data_emp_fax = fax#
 data_emp_web = web#
 data_emp_name = name#
 data_emp_phone = ph#
 data_emp_email = email#




More information about the thelist mailing list