Jump to content

Need help on coding...


Guest cmsoh72

Recommended Posts

Guest cmsoh72

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...