WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 06.04.2001, 15:10   #1
Tower
Hero
 
Registriert seit: 31.08.2000
Alter: 47
Beiträge: 886


Tower eine Nachricht über ICQ schicken
Frage

Ich brauche ein VB Script mit dem ich von einer Webseite Fils anklicken und auf einen anderen websever senden kann. Soviel und die CPSHOST.DLL hab ich schon nur wie gehts weiter?

<%@ Language=VBScript %>
<%
' Definitionen
Option Explicit
Dim strServerURL ' local Web Server Name including http:// protocoll
Dim strTargetURL ' Directory where we will upload our file to
Dim strRepostURL ' Path to the file we will display after our file uploads
Dim strPathtoPA ' Path to the cpshost.dll
Dim strPostingURL ' Action path for our form

' Verarbeitung
If Request.ServerVariables ("LOGON_USER") = "" Then
Response.Status = "401 Access Denied"
Response.End
End If

strServerURL = "http://" & Request.ServerVariables("SERVER_NAME")
'strTargetURL = strServerURL & "/upload"
strTargetURL = strServerURL & "/test1/upload"
strRepostURL = strServerURL & "/test1/reply.asp?test=true"
strPathtoPA = strServerURL & "/scripts/cpshost.dll"
'strPathtoPA = strServerURL & "/test1/scripts/cpshost.dll"
strPostingURL = strPathtoPA & "?PUBLISH?" & strRepostURL

%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<FORM ENCTYPE="multipart/form-data" NAME="oForm" ACTION="<% = strPostingURL %>" METHOD=POST>
<INPUT TYPE=file NAME=ofile1>
<INPUT TYPE=hidden NAME=TargetURL VALUE="<% = strTargetURL %>">
<INPUT TYPE=submit VALUE=UPLOAD>


</P>
</FORM>
</BODY>
</HTML>
Tower ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:46 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag