Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

fileupload script help


  • Please log in to reply
2 replies to this topic

#1 minusp

minusp

    CC Lurker

  • Just Joined
  • Pip
  • 6 posts

Posted 01 February 2007 - 08:51 AM

Hi guys

can anyone help me?
i need an asp script that shows "hello!" in a html code by default But when i write for e.g : "page.asp?act=upload" in url, it shows a file uploader

for example : something like this in php

echo "hello";
if(@$_GET['act']=="upload"){
<FILE UPLOADER SECRIPT>
}

But i need ASP code of this


Thanks
  • 0

#2 Sergey.Net

Sergey.Net

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 15 June 2007 - 05:21 AM

You can see code sample for uploading :
here.

Here it seems to be more complicated than in PHP or .NET.

But basic form is simple
Response.Write("hello")
If Request.Form("action") == "upload" Then
%>
... your upload form here ...
<%
End If
  • 0

#3 Doe1974

Doe1974

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 10 August 2007 - 05:40 AM

There is a double == that is incorrect in ASP. Use just one =.
If you need upload components, check Safileupload.
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download