Current location: Hot Scripts Forums » General Community » Script Requests » Using script to upload files onto server

Using script to upload files onto server

Reply
  #1 (permalink)  
Old 11-05-09, 12:38 PM
hansadamsson70 hansadamsson70 is offline
New Member
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Using script to upload files onto server

Script for uploading files onto the server

Hello,

I am looking for a script that will allow my clients to upload their file (: *.pdf, *.jpg, *.png, *.gif and *.zip formats) onto the server holding my website; from a form on my site.

Probably the script should be housed in the main directory or presumably in the cgi-bin directory.

The underlying principles (of the script) should take into consideration the issues of security pertaining to the type of files that are allowed to be uploaded.

The configuration of the form is as below. The script should perform the "action" of "UpLoadOrder.aspx" within the form.

Many thanks in advance for the script (hans.adamsson(at)wippies.com)

Regards,
Maunu

&&&&&&&&&&&&&&&

<form name="form1" method="post" action="UpLoadOrder.aspx" id="form1" onsubmit="return OnFormSubmit()" enctype="multipart/form-data">

<div><strong><span id="LabelUploadConfirm" class="grey-txt">Complete the following information and then upload file:</span></strong>
<div id="PanelUploadForm">

<table class="bder" width="100%" align="center" border="0" cellpadding="2" cellspacing="0">
<tbody><tr>
<td class="grey-txt">Name:</td>
<td><input name="CustName" id="CustName" onblur="CheckInput(this,'SpanCustName','Customer Name Required...')" type="text"><br><span id="SpanCustName" class="alertMessage"></span></td>
</tr>
<tr>
<td class="grey-txt">Company:</td>
<td><input name="CustCompany" id="CustCompany" onblur="CheckInput(this,'SpanCustCompany','Company Name Required...')" type="text"><br><span id="SpanCustCompany" class="alertMessage"></span></td>
</tr>
<tr>
<td class="grey-txt">Email Address:</td>
<td><input name="CustEmail" id="CustEmail" onblur="CheckInput(this,'SpanCustEmail','Email Address Required...')" type="text"><br><span id="SpanCustEmail" class="alertMessage"></span></td>
</tr>
<tr>
<td class="grey-txt">Phone Number:</td>
<td><input name="CustPhone" id="CustPhone" onblur="CheckInput(this,'SpanCustPhone','Phone Number Required...')" type="text"><br><span id="SpanCustPhone" class="alertMessage"></span></td>
</tr>
<tr>
<td class="grey-txt">Upload File:</td>
<td><input name="FileUpload" id="FileUpload" class="grey-head" size="15" contenteditable="false" type="file"><br><span id="SpanFileUpload" class="alertMessage"></span></td>
</tr>
<tr>
<td colspan="2" class="grey-txt"><a href="#" onclick="return OnFormSubmit()"><img src="upload.gif" alt="Upload Now" title="Upload" width="90" border="0" height="24"></a></td>
</tr>

</tbody></table>

</div>
</div>
</form>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-05-09, 04:28 PM
carters-site's Avatar
carters-site carters-site is offline
Newbie Coder
 
Join Date: Sep 2009
Location: Moline, IL
Posts: 73
Thanks: 1
Thanked 1 Time in 1 Post
PHP and Javascript at work:

eXtplorer - A PHP- and JavaScript- based File Manager

complete file manager solution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
file, security, server, upload, website


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script won't always run on server patter PHP 2 08-19-07 03:34 PM
script to test php mail on server - HELP bloodl PHP 5 07-25-07 08:29 PM
move files around an ftp server, with php file upload script? wapchimp PHP 2 12-19-04 08:27 AM
Upload Script Problem!!! seanknighton Perl 0 03-21-04 10:54 PM
Help with my upload script TheMetsAreBad PHP 2 12-04-03 07:10 PM


All times are GMT -5. The time now is 10:59 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.