当我单击“提交”时,我会收到以下通知:
未定义索引:theIsbn0(以及theIsbn1和theIsbn2)
知道为什么吗?
<?php //<=spam
<input name="theIsbn0" ...>
?> //<=spam
edit:这是我按Ctrl + u作为第一个文本索引所看到的html代码(我添加了<?php?>,以便输入标记可以显示在我的帖子中,而实际上不在代码中):
news
答案 0 :(得分:-1)
检查 void SpawnCheckPoint() {
mySlider.maxValue = gameLevel[currentLevel].maxValue; //Set the slider's Max Value to the max value of the level.
float sliderMaxValue = mySlider.maxValue;
float sliderWidth = slider.GetComponent<RectTransform>().sizeDelta.x; //Get the width of the Slider.
float zeroValue = slider.transform.position.x - (sliderWidth / 2); //Get the leftmost corner of the slider.
//Loop to Instantiate the 3 checkpoints.
for (int i = 0; i < gameLevel[currentLevel].values.Length; i++) {
float valueToIncrement = (gameLevel[currentLevel].values[i] / sliderMaxValue); //Get the % of the checkpoint based on the max value of the level.
float newPos = (sliderWidth * valueToIncrement); //New position in screen
//Instantiate the object as a child of the Slider
GameObject checkpoint = Instantiate(checkPoint, new Vector3(zeroValue + newPos - xPadding, slider.transform.position.y - yPadding, slider.transform.position.z),
Quaternion.identity, GameObject.FindGameObjectWithTag("Slider").transform);
}
}
是否存在。但使用setFactor
theIsbn{$i}"
我认为你想要(注意 if (isset($_POST["setFactor"])){
echo $_POST["theIsbn{$i}"];
):
htmlspecialchars()