Forum Moderators: coopster
<input type="Text" name="First">
<input type="Text" name="Last">
<input type="Text" name="Postal">
and then I pump i t back out on the next page:
foreach($_POST as $name=>$value){
echo"$name = $value<br>";
}
I am wondering if there a property that I can assign the form elements (textboxes, radios, dropdowns) that will display more user friendly names. The foreach loop works for me. There are actually are a lot of form elements
So rather than
First = Kam
Last = Kaz
Postal = 73928
I would like to have:
First Name = Kam
Last Name = Kaz
Zip/Postal Code = 73928
Does anyone know of how to do this without a lot of CASE or IF statements.
Thank you
<input type="text" name="Postal Code" size="30" />
foreach ($_POST as $Name => $Value)
{
echo "$Name = $Value<br />";
}
Postal Code = 90210
Hope this helps!