hi all,
Got a problem with arrays that im not too sure about.
Basically im using an array to pre-populate an input field depending on what the users logged in as.
For example, i’ve put in array each user and their corresponding country which i want to stick in the form.
so…
$country = array (“user1” => “england”, “user2” => “australia”); etc etc…
What i need to do is to find out what user is logged in (from an outside variable) and compare it to whats in the array and echo out the correct country in form…
Im very stuck on this so any ideas and help would be very much appreciated!
