Facebook Registration Connect
问题 Updade: Ok so I've fixed my previous problem (Besides the SQLinjection which I'm not sure how to patch but for now it's unimportant) however I need to get it to detect Male or Female and strip some characters from it too... This is the code I did for that I defined the variable here: $gender = $response["registration"]["gender"]; I then defined newgender here $new_gender = "F"; However I then added an if statement which was supposed to detect if it was Male and change it to "M" if($gender ==