このコードは、何らかの理由で数値として返されます (「$RTEXT」が本来あるべき場所)。足りないものはありますか?愚かな間違い?助けてください。
if($_POST['Action_3']){
if(isset($_POST['act4_0'])){
$rank = 0;
$RTEXT = "Member";
}elseif(isset($_POST['act4_1'])){
$rank = 1;
$RTEXT = "Graphic designer";
}elseif(isset($_POST['act4_2'])){
$rank = 2;
$RTEXT = "Moderator";
}elseif(isset($_POST['act4_3'])){
$rank = 3;
$RTEXT = "Administrator";
}elseif(isset($_POST['act4_4'])){
$rank = 4;
$RTEXT = "Director of media";
}elseif(isset($_POST['act4_5'])){
$rank = 5;
$RTEXT = "Community manager";
}elseif(isset($_POST['act4_6'])){
$rank = 6;
$RTEXT = "Senior manager";
}elseif(isset($_POST['act4_7'])){
$rank = 7;
$RTEXT = "Senior moderator/Admin";
}
echo "<div style='float:left;margin:-660px 100px;min-width:760px;text-indent:190px;font-size:15px;'class='alert alert-success'><strong>Success!</strong> You have successfully changed (<b>" . $_POST['username'] . "'s</b>) rank to (<b>" . $RTEXT . "</b>). </div>";