- Mesajlar
- 334
Hafta sonu yüksek lisansn sınavlarım var her birinden en az 70 almam gerekiyor. Elimde bir alışveriş spriti var bir arkadaşıma verdiğim söz nedeniyle bu scpirti derlemem gerekiyor . Verdiğim söz nedeniyle sonra bakarım diyemiyorum. Karşıma çıkan sorun yüzünden sorunu çözüp sınavlarımada bakamadım henüz. Bir an önce şu işi halletmem lazım . Sorun şu elimde bir alışveriş sitesi scpriti var bir çok sorunu çözdüm bu en önemli sorunlardan daha önce mail bileşeni sorunu vardı forumdan yönlendirmelerle hallettik. Şimdi sorun şu müşteri sipariş için ürünleri seçiyor siparişi onaylayacak oanyalayınca sipariş site sahib,ine gidecek hangi ürünleri almış alanın bilgileri ne bu şekilde bir mail olacak.
Sepetteki ürünler maile gidiyor ama kişi bilgisinin olduğu textboxlu yeri dolduran kişinin bilgileri maile gelmiyor ne eksik bilmiyorum asp yi iyi bilmiyorum sorun şu ki text box'a girilen bilgiler tıpkı sepetteki ürünler gibi aynı mailin içinde gelmeli anlayamadığım kod şu ;
<%
ok = 0
if m_name = true then orderPerson = OrderPerson & l_name & ": " & checkField(request.form("m_name")) & chr(10) & chr(13)
if m_city = true then orderPerson = OrderPerson & l_city & ": " & checkField(request.form("m_city")) & chr(10) & chr(13)
if m_street = true then orderPerson = OrderPerson & l_street & ": " & checkField(request.form("m_street"))& chr(10) & chr(13)
if m_country = true then orderPerson = OrderPerson & l_country & ": " & checkField(request.form("m_country"))& chr(10) & chr(13)
if m_phone = true then orderPerson = OrderPerson & l_phone & ": " & checkField(request.form("m_phone"))& chr(10) & chr(13)
if m_mailadress = true then orderPerson = OrderPerson & l_mailadress & ": " & checkField(request.form("m_mailadress"))& chr(10) & chr(13)
if m_card_type = true then orderPerson = OrderPerson & l_card_type & ": " & checkField(request.form("m_card_type"))& chr(10) & chr(13)
if m_card_number = true then orderPerson = OrderPerson & l_card_number & ": " & checkField(request.form("m_card_number"))& chr(10) & chr(13)
if m_card_expiration_date = true then orderPerson = OrderPerson & l_card_expiration_date & ": " & checkField(request.form("m_card_expiration_date"))& chr(10) & chr(13)
if m_comment = true then orderPerson = OrderPerson & l_comment & ": " & checkField(request.form("m_comment"))& chr(10) & chr(13)
if ok = 0 then
warenkorb = session("warenkorb")
if isArray(warenkorb) then
i = session("items")
mailText = mailText & chr(13) & chr(10) & chr(13) & chr(10)
mailText = mailText & orderPerson & chr(13) & chr(10)
mailtext = mailText & "............" & chr(13) & chr(10)
for t = o to i
if (warenkorb(t,0)) <> "" then
gesamt_artikel = + warenkorb(t,0) * warenkorb(t,2)
gesamt = FormatNumber(gesamt + gesamt_artikel,2,,-2)
mailText = mailText & l_list1 & " : " & warenkorb(t,0) & chr(13)& chr(10)
mailText = mailText & l_list2 & " : " & warenkorb(t,3) & chr(13)& chr(10)
mailText = mailText & l_list3 & " : " & warenkorb(t,4) & chr(13)& chr(10)
mailText = mailText & l_list4 & " : " & FormatNumber(warenkorb(t,2),2,,-2) & chr(13)& chr(10)
mailtext = mailtext & l_list5 & " : " & FormatNumber(gesamt_artikel,2,,-2)& chr(13) & chr(10)
mailtext = mailText & "............" & chr(13) & chr(10)
end if
next
mailtext = mailText & "========================================" & chr(13) & chr(10)
mailtext = mailtext & l_list6 & " : " & FormatNumber(gesamt,2,,-2)
Kırmızı olan yer sepetteki ürünleri ok bunlar otomaitk maille geliyor aslıdna bu kodların altında mail bileşenin tanımlandığı diğer kodlarda var ama ben sorunun buradan kaynaklandığına eminim. Mavi olan yerdeki bilgileri alamıyorum sorun bu. Mavi olan yerde ne anlatılmak isteniyor acaba true ve false özellikleri include edilen bir sayfadan çekiliyor ve true ayarlı.
Mesela maile m_country göndermeye çalışınca true cevabını veriyor kodlamayı yapan bu mavi olan yerde tex box içinde yazı olup olmadığını mı kontrol ediyor nasıl bir komutla m_street , m_country gibi text box yazı alanına yazılan bilgileride sepetteki ürün bilgisiyle gönderceğim lütfen yardım edin. Saygıalrımla..
Sepetteki ürünler maile gidiyor ama kişi bilgisinin olduğu textboxlu yeri dolduran kişinin bilgileri maile gelmiyor ne eksik bilmiyorum asp yi iyi bilmiyorum sorun şu ki text box'a girilen bilgiler tıpkı sepetteki ürünler gibi aynı mailin içinde gelmeli anlayamadığım kod şu ;
<%
ok = 0
if m_name = true then orderPerson = OrderPerson & l_name & ": " & checkField(request.form("m_name")) & chr(10) & chr(13)
if m_city = true then orderPerson = OrderPerson & l_city & ": " & checkField(request.form("m_city")) & chr(10) & chr(13)
if m_street = true then orderPerson = OrderPerson & l_street & ": " & checkField(request.form("m_street"))& chr(10) & chr(13)
if m_country = true then orderPerson = OrderPerson & l_country & ": " & checkField(request.form("m_country"))& chr(10) & chr(13)
if m_phone = true then orderPerson = OrderPerson & l_phone & ": " & checkField(request.form("m_phone"))& chr(10) & chr(13)
if m_mailadress = true then orderPerson = OrderPerson & l_mailadress & ": " & checkField(request.form("m_mailadress"))& chr(10) & chr(13)
if m_card_type = true then orderPerson = OrderPerson & l_card_type & ": " & checkField(request.form("m_card_type"))& chr(10) & chr(13)
if m_card_number = true then orderPerson = OrderPerson & l_card_number & ": " & checkField(request.form("m_card_number"))& chr(10) & chr(13)
if m_card_expiration_date = true then orderPerson = OrderPerson & l_card_expiration_date & ": " & checkField(request.form("m_card_expiration_date"))& chr(10) & chr(13)
if m_comment = true then orderPerson = OrderPerson & l_comment & ": " & checkField(request.form("m_comment"))& chr(10) & chr(13)
if ok = 0 then
warenkorb = session("warenkorb")
if isArray(warenkorb) then
i = session("items")
mailText = mailText & chr(13) & chr(10) & chr(13) & chr(10)
mailText = mailText & orderPerson & chr(13) & chr(10)
mailtext = mailText & "............" & chr(13) & chr(10)
for t = o to i
if (warenkorb(t,0)) <> "" then
gesamt_artikel = + warenkorb(t,0) * warenkorb(t,2)
gesamt = FormatNumber(gesamt + gesamt_artikel,2,,-2)
mailText = mailText & l_list1 & " : " & warenkorb(t,0) & chr(13)& chr(10)
mailText = mailText & l_list2 & " : " & warenkorb(t,3) & chr(13)& chr(10)
mailText = mailText & l_list3 & " : " & warenkorb(t,4) & chr(13)& chr(10)
mailText = mailText & l_list4 & " : " & FormatNumber(warenkorb(t,2),2,,-2) & chr(13)& chr(10)
mailtext = mailtext & l_list5 & " : " & FormatNumber(gesamt_artikel,2,,-2)& chr(13) & chr(10)
mailtext = mailText & "............" & chr(13) & chr(10)
end if
next
mailtext = mailText & "========================================" & chr(13) & chr(10)
mailtext = mailtext & l_list6 & " : " & FormatNumber(gesamt,2,,-2)
Kırmızı olan yer sepetteki ürünleri ok bunlar otomaitk maille geliyor aslıdna bu kodların altında mail bileşenin tanımlandığı diğer kodlarda var ama ben sorunun buradan kaynaklandığına eminim. Mavi olan yerdeki bilgileri alamıyorum sorun bu. Mavi olan yerde ne anlatılmak isteniyor acaba true ve false özellikleri include edilen bir sayfadan çekiliyor ve true ayarlı.
Mesela maile m_country göndermeye çalışınca true cevabını veriyor kodlamayı yapan bu mavi olan yerde tex box içinde yazı olup olmadığını mı kontrol ediyor nasıl bir komutla m_street , m_country gibi text box yazı alanına yazılan bilgileride sepetteki ürün bilgisiyle gönderceğim lütfen yardım edin. Saygıalrımla..