Rumah > Soal Jawab > teks badan
<?php
Session_Start();
header('content-type:text/html;charset=utf-8');
include_once('conn.php' );/
=ID $_SESSION["GID"]; // $GName=$_SESSION["GNName"]; // $GPrice=$_SESSION["GPrice"]; // $GConten "]; // $GImage=$_SESSION["GImage"]; $gid=$_GET['id']; $sql="select * from goods where GID=$gid"; $query = mysql_query($sql); $row=mysql_fetch_assoc($query);?><!doctype html><<
<html< lt;meta charset="utf-8"><title>修改商品</title><link rel="stylesheet" href="styles/global.css" type="text/CSS" /> ;</kepala><badan><h3>修改商品</h3><kaedah borang = "jenis.php" action="checkaddPro" -data"><table width="70%" border="1" cellpadding="5" cellspacing="0" bgcolor="#cccccc"> <tr> <td align="right">商品名称</td> <td><input type="text" name="pName" placeholder="<?php echo $row['GName']?> ; "/></td> </tr> <tr> <td align="right">商品分类</td>&;&
;div id="class"> <pilih nama="CID"> <?php foreach($row as $rows){ ?>=;
"<?php echo $rows['CID'];?>"><?php echo $rows['CName']?></option> <?php }; ?> </select> </div></td>
</tr>
<tr>
<td align="right">商品价格</td>type> ="text" name="mPrice" pemegang tempat="<?php echo $row['GPrice']?>"/></td>
</tr>
<tr>
<td align="right">商品描述</td>
<td>
<textarea name="pDesc" id="editor_id" style="width:100%0pxheight; ;"><?php echo $_SESSION["GCContent"];?></textarea>
</td>
</tr>
<tr>
<tr>align="right">商品图片</td>
<td>
<!-- <label for="file">请选择:</label> -->
<input type="file" name="file" id="file" value="$GImage" />
<!-- <a href="javascript:void( 0)" id="selectFileBtn">添加附件</a>
<div id="attachList" class="clear"></div> -->
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="修攁" /></td>
</tr>
</table>
</form>
</body>
</