由于某种原因,此代码作为数字返回(应该是“$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>";