当前位置:Linux教程 - Php - 后缀自加程序

后缀自加程序

后缀自加程序后缀自加程序

作者:noknow  时间:2004-04-11 23:04:27  来自:  责任编辑:clinch





<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自己用的垃圾程序</title>
<style type="text/css">
<!--
body {
        font-size: 11.5pt;
        font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
}
-->
</style>
</head>

<body>
<p><strong>PHP动态网页连续代码生成器</strong></p>
自己写自己用用的垃圾程序...<br>
<p>作用:实现贴图代码的连续循环显示,以后再也不用一个一个手工改了发论坛了.</p>

<hr size="1" noshade>
<form name="form1" method="post" action="<? echo $PHP_SELF; ?>">
  <p>URL开始:
    <input name="urlstar" type="text" value="http://www.lygpc.com/bbs/images/lygpc_logo" size="50">
    <br>
    选换数字开始:
    <input name="nomstar" type="text" value="5" size="10">
    选换数字结束:
    <input name="nomend" type="text" value="20" size="10">
    <br>
    URL结束:
    <input name="urlend" type="text" value=".gif" size="25">
    <br>
    代码选项:
    <select name="daima" size="1">
      <option value="IMG">[img][/img]</option>
      <option value="URL">[url][/url]</option>
    </select>
    回车选项:
    <select name="brnom" size="1">
      <option value=" ">要0个回车&lt; &gt;</option>
      <option value="&lt;br&gt;">要1个回车&lt;br&gt;</option>
      <option value="&lt;br&gt;&lt;br&gt;">要2个回车&lt;br&gt;&lt;br&gt;</option>
      <option value="&lt;br&gt;&lt;br&gt;&lt;br&gt;">要3个回车&lt;br&gt;&lt;br&gt;&lt;br&gt;</option>
    </select>
    <br>
    <input type="submit" name="Submit" value="提交">
  </p>
</form>
<hr size="1" noshade>
<?php
echo "STAR.....<BR>";

if (
$urlstar <> "" and $nomstar <> "" and $nomend <>"" and $urlend <> ""){
        for (
$i = $nomstar;$i<= $nomend;$i++){
        echo
"[$daima]";
        echo
$urlstar;
        echo
$i;
        echo
$urlend;
        echo
"[/$daima]";
        echo
"$brnom";
}
}

else {
echo
"所有数据不能为空...";
}
echo
"END.....<BR>";
?>
<br>
C:2004 BY GOAO
</body>
</html>