Arkadaşlar ben bi emlak sitesi yapıyorum, tasarım kodlama %90 bitti, sadece yönetim panelinden ilan ekleme kısmına emlağın resmini upload ettirecem ama yapamıyorum.
yani:
ilanekle.asp den ilanla ilgili tüm bilgiler girilecek, sonra gözat denip resim seçilecek , ve kaydet butonuna basıldıktan sonra tüm bilgilerle birlikte upload ettiğimiz resminin linki accesse eklenecek,
bunu googleda araştırdım , birçok kod buldum ama işin içinden çıkmadım, yardımcı olursanız minnettar kalırım..
ayrıca msn adresimde bilgi@ensoftdizayn.net
ASP Upload problemi
6
●372
- 16-03-2009, 12:04:42Üyeliği durdurulduBak bu form sayfası:
<form method="POST" action="ilan_kaydet.asp" name="haber"> <font face="Verdana"> <select name="sehirkod" id="IlListesi" onchange="document.location.href='default.asp?SehirKodu='+ this.options[this.selectedIndex].value;" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:151"> <% If Request("SehirKodu") = "" Then %> <% Set sehirs = Server.CreateObject("ADODB.RecordSet") sehirs.Open "SELECT * FROM sehir ", baglantim, 1, 3 git = Request.QueryString("git") if git="" then git=1 end if%> <option selected>SEÇİNİZ</option> <% sehirs.pagesize = 10000 sehirs.absolutepage = git sayfa = sehirs.pagecount for i=1 to sehirs.pagesize if sehirs.eof or sehirs.bof then exit for %> <option value="<%=sehirs("id")%>"><%=sehirs("sehir")%><%if sehirs.recordcount>0 then%> <%end if%></option> <%sehirs.MoveNext Next %> <% end if%> <% If Request("SehirKodu") <> "" Then %> <% kadir=Request("SehirKodu") Set sehirs = Server.CreateObject("ADODB.RecordSet") sehirs.Open "SELECT * FROM sehir where id="&kadir, baglantim, 1, 3 git = Request.QueryString("git") if git="" then git=1 end if%> <% sehirs.pagesize = 10000 sehirs.absolutepage = git sayfa = sehirs.pagecount for i=1 to sehirs.pagesize if sehirs.eof or sehirs.bof then exit for %> <option value="<%=sehirs("id")%>"><%=sehirs("sehir")%><%if sehirs.recordcount>0 then%> <%end if%></option> <%sehirs.MoveNext Next %> <% end if%> </select></font></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">İlçe</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"> <select name="ilce" id="IlceListesi" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"> <% If Request("SehirKodu") <> "" Then %> <% kadir=Request("SehirKodu") Set ilce = Server.CreateObject("ADODB.RecordSet") ilce.Open "SELECT * FROM ilceler where sehir="&kadir, baglantim, 1, 3 git = Request.QueryString("git") if git="" then git=1 end if%> <% ilce.pagesize = 10000 ilce.absolutepage = git sayfa = ilce.pagecount for i=1 to ilce.pagesize if ilce.eof or ilce.bof then exit for %> <option value="<%=ilce("ilce")%>"><%=ilce("ilce")%> <%if ilce.recordcount>0 then%> <%end if%></option> <%ilce.MoveNext Next %> <%end if%> </select></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Semt</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="semt" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Emlak Tipi</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><font face="Verdana" size="1"> <select size="1" name="emlaktipi" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"> <option>Daire</option> <option>İş Yeri</option> <option>Müstakil Ev</option> <option>Villa</option> <option>Komple Bina</option> <option>Devre Mülk</option> <option>Otel</option> <option>Fabrika</option> <option>Arsa</option> <option>Prefabrik</option> </select></font></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Emlak Durumu</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><font face="Verdana" size="1"> <select size="1" name="kategori" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"> <option>Satılık</option> <option>Kiralık</option> </select></font></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Metrekare</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="metrekare" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"> <b><font size="1" face="Verdana">m2</font></b></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Fiyat</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="fiyat" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"> <b><font size="1" face="Verdana">TL</font></b></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Depozito</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="depozito" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"><b><font size="1" face="Verdana"> TL</font></b></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Bulunduğu kat</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="bulundugukat" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Binadaki kat sayısı</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="binakatsayi" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Oda Sayısı</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="text" name="odasayisi" size="20" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:18; width:150"></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Resim</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"><input type="file" name="resim" size="28"></td> </tr> <tr> <td width="191"> <font face="Verdana" size="1" color="#295C9A"> <span style="font-weight: 700">Ek Bilgiler</span></font></td> <td width="31"><b> <font size="1" face="Verdana" color="#295C9A">:</font></b></td> <td width="337"> <textarea rows="5" name="ekbilgi" cols="22" style="font-size: 10px; font-family: Verdana; font-size: 10px width:60; height:92; width:259"></textarea></td> </tr> <tr> <td width="191"> </td> <td width="31"> </td> <td width="337"> <input type="submit" value=" İlan Ekle " name="B1" style="font-weight: 700"> <input type="reset" value="Temizle" name="B2" style="font-weight: 700"></td> </tr>ben bu formdai bilgilerle birlikte resimi upload ettirip linkini accesse kaydettrmek istiyorum.
yardımlarınızı bekliyorum