⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 write.php

📁 本程序适合新手入门学习用,偶也是一个新手,愿意和大家一同学习交流, 最近也比较忙,大家从程序中就能看出来,程序修改时间是很久前的, 因为最近正在学习模版技术,所以这个现在自己都感觉很头痛,不想改了
💻 PHP
字号:
<link href="css.css" rel="stylesheet" type="text/css">
<? 
   include_once"head.php";
?>

<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <td width="172" height="521" valign="top">

    </td>
    <td width="576">
	<div id="main">

<table align="center" width="500" border="0" cellpadding="0" cellspacing="0" class="table">
   <tr>     <td width="100%" height="100%">
<form align="center" id="form1" name="form1" method="get" action="input.php">
  <p>姓名:
    <input name="name" type="text" value="name" maxlength="10" size="20"/> *
  <p>
	性别:
       <input name="sex" type="radio" value="1"男 checked="checked" />
      <input name="sex" type="radio" value="0"女 />
  <p>
    生日:
      <input name="birthday" type="text" value="birthday"/>  *
  <p>
    电话:
    <input name="phone" type="text" value="phone"/>
  <p>
    邮箱:
    <input name="email" type="text" value="email"/> *
  <p>
    Q Q :
      <input name="qq" type="text" value="qq"/>
  <p>
    地址:
    <input name="address" type="text" value="address"/>
  <p>
  图像:
    <select name=head onChange="javascript:document.images['head'].src=options[selectedIndex].value">
    <?php
	include "config.php";
    $imgdir        = "images";	
    $list          =  myreaddir("$imgdir/head");	
    $count         = count($list)-1;	
    rsort($list);
    for ($i=$count;$i>=0;$i--)
      {
	   if ($list[$i]!=""&&$list[$i]!="Thumbs.db")
	        {
		       echo "<option value=$imgdir/head/$list[$i]>$list[$i]</option>";
	 session_start();
	 $_SESSION['images'] = $imgdir;	 
	 $_SESSION['list']   = $list;	 

			}
       }
	 
   ?>
    </select><p>&nbsp;&nbsp;&nbsp;<img src="<?=$imgdir?>/head/<?=$list[$count];
	session_start(); $_SESSION['count']  = $count;
	?>" id="head">
  <p>
  内容:
     <textarea name="note" cols="50" rows="5">Write contents!</textarea> *
 </p>

   &nbsp;&nbsp;&nbsp;<input name="submit" type="submit" id="submit" value="提交" class="button"/>
&nbsp;&nbsp;&nbsp;
    <input name="reset" type="reset" id="reset" value="重置" class="button" />
	<!--隐藏表单传递参数
	<input name="imgdir" type="hidden" value="$imgdir">
	<input name="list" type="hidden" value="$list">
	<input name="count" type="hidden" value="$count">-->
</form>
[<a href="index.php">查看留言</a>]|[<a href="JavaScript:history.go(-1)">返回</a>]
</td>   </tr>  </table>

</td></tr></table>
</td>
</div>
</tr>
</table>
<?include_once"copyright.php"?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -