MENGONTOL SHELL
:
13.59.67.189
:
170.10.163.183 / aifatradebd.com
:
Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
:
/
home
/
bdapparelinfo
/
www
/
Upload File:
files >> //home/bdapparelinfo/www/old_form.php
<form action="add_list_submit.php" method="post" enctype="multipart/form-data" name="myform" id="myform"> <table align="center" cellpadding="2" cellspacing="1"> <tr> <td align="right" class="section_text">Categories Name</td> <td align="center"><strong>:</strong></td> <td><label> <select class="admin_form_field_text" name="cat_name"> <option value="000" selected="selected"> Select Categories</option> <?php require_once 'config.php'; $SQL = "select * from categories_list ORDER BY `title` ASC"; $query = mysql_query($SQL); while ($result = mysql_fetch_array($query)) { ?> <option value="<?php echo $result['id'];?> "> <?php echo $result['title'];?></option> <?php } ?> </select> </label></td> </tr> <tr> <td align="right" class="section_text">Company Name</td> <td align="center"><strong>:</strong></td> <td><input name="company_name" type="text" class="admin_form_field_text" id="company_name" /></td> </tr> <tr> <td align="right" class="section_text">Contact Email</td> <td align="center"><strong>:</strong></td> <td><input name="email" type="text" class="admin_form_field_text" id="email" /></td> </tr> <tr> <td width="137" align="right" class="section_text">Image</td> <td width="37" align="center"><strong>:</strong></td> <td width="381"><input name="image" type="file" id="name" /></td> </tr> <tr> <td align="right" class="section_text">Description</td> <td align="center"><strong>:</strong></td> <td> </td> </tr> <tr> <td colspan="3"><label> <textarea name="des" class="editor" id="des"></textarea> </label></td> </tr> <tr> <td align="right" class="section_text"> </td> <td align="center"> </td> <td><input id="submit" type="submit" name="create" value="Create Add"/></td> </tr> <tr> <td colspan="6" align="right" class="section_text"> </td> </tr> </table> </form><script language="JavaScript" type="text/javascript" xml:space="preserve">//<![CDATA[ //You should create the validator only after the definition of the HTML form var frmvalidator = new Validator("myform"); frmvalidator.EnableOnPageErrorDisplaySingleBox(); frmvalidator.EnableMsgsTogether(); frmvalidator.addValidation("company_name","req","Please Select your Company Name"); frmvalidator.addValidation("company_name","maxlen=20", "Max length for Company Name is 20"); frmvalidator.addValidation("company_name","alpha_s","Name can contain alphabetic chars only"); frmvalidator.addValidation("email","maxlen=50"); frmvalidator.addValidation("email","req"); frmvalidator.addValidation("email","email"); frmvalidator.addValidation("image","file_extn=jpg;gif;png","Allowed files types are: jpg;gif;png"); frmvalidator.addValidation("image","req_file","File upload is required"); frmvalidator.addValidation("des","maxlen=50"); frmvalidator.addValidation("cat_name","dontselect=000"); //]]></script>
Copyright © Reserved.