查看文件: addtb3n.php
大小: 2.31 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); ?> <?php /* if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO tb3 (be1, be2, be3) VALUES (%s, %s, %s)", GetSQLValueString($_POST['be1'], "text"), GetSQLValueString($_POST['be2'], "text"), GetSQLValueString($_POST['be3'], "int")); mysql_select_db($database_BE2, $BE2); $Result1 = mysql_query($insertSQL, $BE2) or die(mysql_error()); $insertGoTo = $_POST['url']; header(sprintf("Location: %s", $insertGoTo)); } */ ?> <form action="" method="post" name="form1" id="form1"> <table width="618" align="center"> <tr valign="baseline"> <td align="right" nowrap="nowrap">選單:</td> <td><select name="bex2" id="bex2"> <option value="6">租車查詢</option> <option value="7">觀光旅遊</option> <option value="10">企業徵才</option> </select></td> </tr> <tr valign="baseline"> <td align="right" nowrap="nowrap"><span class="font2">項目:</span></td> <td><label for="bex"></label> <select name="bex" id="bex"> <? $ar1=array("服務類別","旅遊地區","旅遊天數","費用"); for($i=0;$i<count($ar1);$i++){ ?> <option value="<?=$ar1[$i] ?>">服務類別</option> <? }?> </select></td> </tr> <tr valign="baseline"> <td width="33" align="right" nowrap="nowrap"><span class="font2">服務分類</span>:</td> <td width="357"><input type="text" name="be1" value="" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right"><span class="font2">服務說明</span>:</td> <td><input type="text" name="be2" value="" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right"><span class="font2">排列序</span>:</td> <td><input type="text" name="be3" value="" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right"><input name="url" type="hidden" id="url" value="<? echo $_SERVER['HTTP_REFERER']?>" /></td> <td><input type="submit" value="插入記錄" /></td> </tr> </table> <input type="hidden" name="MM_insert" value="form1" /> </form>
保存
取消
返回文件列表