Guest cmsoh72 Posted November 14, 2005 Share Posted November 14, 2005 I am trying to use a Iff statement to check the country in the database and then set the county/state field. But it seems like my reference to the criteria value is not returning the correct value and the statement is always returning false (else). Any idea what needs to be changed? --------------My Code---------------------------------------------------------------- if($ccUserData[0]['country']=="United States"){ $hiddenVars .= "<input type='hidden' name='state' value='".$ccUserData[0]['county']."' />"; } else { $hiddenVars .= "<input type='hidden' name='state' value='Outside US and Canada' />"; } ---------------End My Code--------------------------------------------------------- Thanks! CM. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.