论坛: 编程破解 标题: 我在学PHP的时候出现这些问题是否属于我PHP.ini配置有问题? 复制本贴地址    
作者: bailove [bailove]    论坛用户   登录
我在学PHP 的时候出现这些问题是否 属于我  PHP.ini配置有问题
----------------------
<?

include("config.php");
include("includes/schema.php");
updatecookie();

$title="Create Universe";
include("header.php");

connectdb();

bigtitle();

if($swordfish != $adminpass){
  echo "<form action=create_universe.php method=post>";
  echo "Password: <input type=password name=swordfish size=20 maxlength=20><BR><BR>";
  echo "<input type=submit value=Submit><input type=reset value=Reset>";
  echo "</form>";
}
elseif($swordfish == $adminpass && $engage == ""){
  echo "Max sectors set to $sector_max in config.php<BR><BR>";
  echo "<form action=create_universe.php method=post>";
  echo "<table>";
  echo "<tr><td><b><u>Base/Planet Setup</u></b></td><td></td></tr>";
  echo "<tr><td>Percent Special</td><td><input type=text name=special size=2 maxlength=2 value=1></td></tr>";
  echo "<tr><td>Percent Ore</td><td><input type=text name=ore size=2 maxlength=2 value=20></td></tr>";
  echo "<tr><td>Percent Organics</td><td><input type=text name=organics size=2 maxlength=2 value=20></td></tr>";
  echo "<tr><td>Percent Goods</td><td><input type=text name=goods size=2 maxlength=2 value=20></td></tr>";
  echo "<tr><td>Percent Energy</td><td><input type=text name=energy size=2 maxlength=2 value=20></td></tr>";
  echo "<tr><td>Percent Empty</td><td>Equal to 100 - total of above.</td></tr>";
  echo "<tr><td>Initial Commodities to Sell<br><td><input type=text name=initscommod size=5 maxlength=5 value=50.00> % of max</td></tr>";
  echo "<tr><td>Initial Commodities to Buy<br><td><input type=text name=initbcommod size=5 maxlength=5 value=50.00> % of max</td></tr>";
  echo "<tr><td><b><u>Sector/Link Setup</u></b></td><td></td></tr>";
  $fedsecs = intval($sector_max / 300);
  $loops = intval($sector_max / 300);
  echo "<TR><TD>Number of Federation sectors</TD><TD><INPUT TYPE=TEXT NAME=fedsecs SIZE=4 MAXLENGTH=4 VALUE=$fedsecs></TD></TR>";
  echo "<tr><td>Number of loops</td><td><input type=text name=loops size=2 maxlength=2 value=$loops></td></tr>";
  echo "<tr><td>Percent of sectors with unowned planets</td><td><input type=text name=planets size=2 maxlength=2 value=10></td></tr>";
  echo "<tr><td></td><td><input type=hidden name=engage value=1><input type=hidden name=swordfish value=$swordfish><input type=submit value=Submit><input type=reset value=Reset></td></tr>";
  echo "</table>";
  echo "</form>";
}
.
.
.
--------------
  他会一直的提示我:Notice: Undefined variable: swordfish in D:\Program Files\Apache Group\Apache2\htdocs\bnt\create_universe.php on line 14

swordfish 这个变量是我通过提交表当给 这程序的啊  我换了两一种提交http://localhost:81/bnt/create_universe.php?swordfish=safd
他仍然提示上面哪个  并且程序没有走下去  这是为什么啊
服务器环境是apache2.0.49 php4.3.3 mysql MySQL 3.23.52  这是为什么  谢谢了

地主 发表时间: 05-02-25 15:32

回复: bailove [bailove]   论坛用户   登录
补充下 我是win2000的系统

B1层 发表时间: 05-02-25 15:33

回复: bailove [bailove]   论坛用户   登录
再说明下 问题  提交表单  没有任何效果    感觉是那  notice  妨碍了提交的过程

B2层 发表时间: 05-02-25 16:36

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号