Thursday, 24 April 2014

Create web directry

To create an directy you have many ways, one of the ways is by php script


<form action="" method="post" >
<table width="400" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td colspan="3" align="center">Please write your preferred directory name </td>
  </tr>
  <tr>
    <td>Name </td>
    <td>&nbsp;</td>
    <td><input type="text" name="gname" id="text" value=""></td>
  </tr>

  <tr>
    <td colspan="3" align="center"><input type="submit" name="submit" id="submit" value="Submit"></td>
  </tr>
</table>
</form>



<?php



if (isset($_POST['submit'])) {

$name = $_POST['gname'];


mkdir ("$name", 0777);

}


?>





No comments:

Post a Comment