<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta **********="Content-Type" content="text/html; charset=iso-8859-9" />
<title>İletişim Formu</title>
</head>
<body>
<!--#include file="veriyolu.asp" -->
<%
dim ad, soyad, mail, konu, mesaj,cevap
ad=request.form("ad")
soyad=request.form("soyad")
mail=request.form("mail")
konu=request.form("konu")
mesaj=request.form("mesaj")
guvenlik=request.form("guvenlik")
guvenlik=int(guvenlik)
if request.querystring("islem")="gonder" then
if session("sonuc")=guvenlik then
else
response.redirect("?mesaj=guvenlik")
end if
if ad="" or soyad="" or mail="" or konu="" or mesaj="" then
response.redirect("?mesaj=bos-alan")
else
set rsiletisim=server.CreateObject("ADODB.Recordset")
sqliletisim="select * from iletisim"
rsiletisim.Open sqliletisim, ugurbayindir , 1, 3
rsiletisim.AddNew()
rsiletisim("ad")=ad
rsiletisim("soyad")=soyad
rsiletisim("mail")=mail
rsiletisim("konu")=konu
rsiletisim("mesaj")=mesaj
rsiletisim("ip")=session("ip")
rsiletisim.Update
rsiletisim.Close
response.redirect("?mesaj=basarili")
end if
else
end if
%>
<% ' Mesaj Bölümü %>
<% if request.querystring("mesaj")="guvenlik" then %>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" style="border:1px solid #CC0000; padding:5px; margin-bottom:10px;">
<tr>
<td align="center">
<span style="font-family:Tahoma; font-size:12px; color:#CC0000;">Güvenlik Kodunu Hatalı Girdiniz!</span>
</td>
</tr>
</table>
<% elseif request.querystring("mesaj")="bos-alan" then %>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" style="border:1px solid #CC0000; padding:5px; margin-bottom:10px;">
<tr>
<td align="center">
<span style="font-family:Tahoma; font-size:12px; color:#CC0000;">Lütfen Tüm Alanları Eksiksiz Doldurunuz!</span>
</td>
</tr>
</table>
<% elseif request.querystring("mesaj")="basarili" then %>
<div align="center">
<table width="400" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #008000; padding:5px; margin-bottom:10px">
<tr>
<td align="center">
<span style="font-family:Tahoma; font-size:12px; color:#008000;">Tebrikler Mesajınız Başarılı Bir Şekilde İletilmiştir.</span><font color="#008000">
</font>
</td>
</tr>
</table>
</div>
<%
else
end if
%>
<% ' Mesaj Bölümü %>
<form action="?islem=gonder" method="post" style="margin: 0px;" name="iletisim" id="iletisim">
<%
Dim sayi,sayi2
Randomize
sayi = int((Rnd * 15 )+1 )
sayi2 = int((Rnd * 15 )+1 )
session("sonuc")=sayi+sayi2
%>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" style="border:1px solid #666;">
<tr>
<td height="30" colspan="3" align="center" bgcolor="#0099CC" style="border-bottom:1px solid #666;">
<a style="text-decoration: none" target="_blank" href="http://www.ugurbayindir.com">
<span style="font-family:Tahoma; font-size:12px; color:#FFF; font-weight:700">Ub-Soft İletişim Formu </span>
</a></td>
</tr>
<tr>
<td width="103" height="30" align="left" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;"> Adınız *</span></td>
<td width="5" align="center" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;">:</span></td>
<td width="292" align="center" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;">
<input type="text" name="ad" id="ad" style="width:280px; border:1px solid #666;" /></span></td>
</tr>
<tr>
<td height="30" align="left" bgcolor="#F3F3F3"><span style="font-family:Tahoma; font-size:12px; color:#000;"> Soyadınız *</span></td>
<td align="center" bgcolor="#F3F3F3"><span style="font-family:Tahoma; font-size:12px; color:#000;">:</span></td>
<td align="center" bgcolor="#EEEEEE"><span style="font-family:Tahoma; font-size:12px; color:#000;">
<input type="text" name="soyad" style="width:280px; border:1px solid #666;" id="soyad" />
</span></td>
</tr>
<tr>
<td height="30" align="left" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;"> Mail Adresiniz</span></td>
<td align="center" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;">:</span></td>
<td align="center" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;">
<input type="text" name="mail" style="width:280px; border:1px solid #666;" id="mail" />
</span></td>
</tr>
<tr>
<td height="30" align="left" bgcolor="#EEEEEE"><span style="font-family:Tahoma; font-size:12px; color:#000;"> Konu *</span></td>
<td align="center" bgcolor="#EEEEEE"><span style="font-family:Tahoma; font-size:12px; color:#000;">:</span></td>
<td align="center" bgcolor="#EEEEEE"><span style="font-family:Tahoma; font-size:12px; color:#000;">
<input type="text" name="konu" style="width:280px; border:1px solid #666;" id="konu" />
</span></td>
</tr>
<tr>
<td height="30" align="left" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;"> Mesaj *</span></td>
<td align="center" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;">:</span></td>
<td align="center" bgcolor="#F5F5F5"><span style="font-family:Tahoma; font-size:12px; color:#000;">
<textarea name="mesaj" id="mesaj" rows="5" style="width:280px; border:1px solid #666;"></textarea>
</span></td>
</tr>
<tr>
<td height="30" align="left" bgcolor="#EEEEEE">
<span style="font-family:Tahoma; font-size:12px; color:#000;">
<%=sayi%> + <%=sayi2%> = ? *</span>
</td>
<td align="center" bgcolor="#EEEEEE"><span style="font-family:Tahoma; font-size:12px; color:#000;">:</span></td>
<td align="center" bgcolor="#EEEEEE"><span style="font-family:Tahoma; font-size:12px; color:#000;">
<input type="text" name="guvenlik" style="width:280px; border:1px solid #666;" id="guvenlik" />
</span></td>
</tr>
<tr>
<td height="38" align="left" bgcolor="#F5F5F5"> </td>
<td align="center" bgcolor="#F5F5F5"> </td>
<td align="center" bgcolor="#F5F5F5">
<input type="submit" value="Gönder" style="border:1px solid #666; background-color:#0099CC; color:#FFF; padding:2px; cursor:pointer;" onclick="kontrol();" /></td>
</tr>
<tr>
<td height="38" align="left" bgcolor="#EEEEEE" colspan="3">
<p align="center"><b>
<%
Dim temp, ip
temp = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If temp <> "" Then
ip = temp
Else
ip = Request.ServerVariables("REMOTE_ADDR")
End If
session("ip")=ip
%>
IP adresiniz: <% Response.Write session("ip") %>
</b>
</td>
</tr>
</table>
</form>
</body>
</html>