Create a folder online with a form

Source: Internet
Author: User
Tags zip
Online


The contents of the Folder.htm form file in HTML format:

<form name= "Form1" method= "Post" action= "folder-action.asp" >
Create a folder
<input type= "text" name= "name" >
<input type= "Submit" name= "submit" value= "Submit" >
</form>

ASP file folder-action.asp

<%@ LANGUAGE = "VBScript"%>
<% Dim Name
Name = Request ("Name")
Set Fs=createobject ("Scripting.FileSystemObject")
Myfolder=server.mappath ("&name&")
If not fs.folderexists (MyFolder) Then
Fs.createfolder (MyFolder)
End If
If fs.folderexists (MyFolder) Then
%> Folder created successfully! Called
<%=MyFolder%>

<%Else%%>
There has been an error.
<%end If
%>

You can also download the zip file in the Http://designbliss.com.au/asp/download.asp?file=folder.zip




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.