Jump to content

fileupload script help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
minusp

minusp

    Newbie

  • Members
  • Pip
  • 6 posts
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

#2
Sergey.Net

Sergey.Net

    Newbie

  • Members
  • Pip
  • 8 posts
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

#3
Doe1974

Doe1974

    Newbie

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