home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 March
/
PCWorld_2003-03_cd.bin
/
Software
/
Komercni
/
OptimAccess
/
english
/
objedn.asp
< prev
next >
Wrap
Text File
|
1999-01-14
|
2KB
|
50 lines
<%@ LANGUAGE="VBSCRIPT" %>
<%
Sub Write(strWriteThis)
response.write(strWriteThis & "<br>")
end sub
%>
<%
Dim objMail
Dim test
Dim test1
Dim test2
Dim test3
Dim blnSuccess
blnSuccess = False
test1 = request.form("NAZEV_FIRMY_NEED")
test2 = request.form("ADRESA_NEED")
test3 = request.form("OSOBA")
Set objMail = Server.CreateObject("VBMail.Connector")
objMail.Sender = "www@box.cz"
objMail.Recipient = "www@box.cz"
objMail.SenderName = "www@box.cz"
objMail.RecipientName = "www@box.cz"
objMail.Subject = "Objednavka ze Serveru English"
objMail.Body ="NAZEV FIRMY :" +request.form("NAZEV_FIRMY_NEED")+Chr(13)+Chr(10)+"ADRESA : "+request.form("ADRESA_NEED")+Chr(13)+Chr(10)+"ICO : "+request.form("ICO")+Chr(13)+Chr(10)+"DIC : "+request.form("DIC")+Chr(13)+Chr(10)+"OSOBA : "+request.form("OSOBA")+Chr(13)+Chr(10)+"FUNKCE : "+request.form("FUNKCE")+Chr(13)+Chr(10)+"TELEFON : "+request.form("TELEFON")+Chr(13)+Chr(10)+"MOBIL : "+request.form("MOBIL")+Chr(13)+Chr(10)+"EMAIL : "+request.form("EMAIL")+Chr(13)+Chr(10)+"WWW : "+request.form("WWW")+Chr(13)+Chr(10)+"KOD1 : "+request.form("KOD1")+Chr(13)+Chr(10)+"POCETKUSU1 :"+request.form("POCETKUSU1")+Chr(13)+Chr(10)+"CENA1 : "+request.form("CENA1")+Chr(13)+Chr(10)+"KOD2 : "+request.form("KOD2")+Chr(13)+Chr(10)+"POCETKUSU2 :"+request.form("POCETKUSU2")+Chr(13)+Chr(10)+"CENA2 : "+request.form("CENA2")+Chr(13)+Chr(10)+"KOD3 : "+request.form("KOD3")+Chr(13)+Chr(10)+"POCETKUSU3 :"+request.form("POCETKUSU3")+Chr(13)+Chr(10)+"CENA3 : "+request.form("CENA3")+Chr(13)+Chr(10)
objMail.Server = "212.47.11.197"
if test1 = "" OR test2 = "" OR test3 = "" Then %>
<% Response.ContentType = "text/HTML" %>
<%Response.Redirect "http://www.sodatsw.cz/english/error.htm" %>
<%Else
blnSuccess = objMail.Send%>
<%End If
If blnSuccess Then%>
<% Response.ContentType = "text/HTML" %>
<%Response.Redirect "http://www.sodatsw.cz/english/ok.htm" %>
<%Else%>
<%End If%>