|
lug-bg: Pomost za Perl skript
- Subject: lug-bg: Pomost za Perl skript
- From: a_panov@xxxxxxx (Alexander Panov)
- Date: Wed, 09 Oct 2002 13:32:30 +0300
vsi4ko se razviva okolo:
baterii.hit.bg/index.html
vav "index.html" imam forma koiato 4rez metoda "POST" sega izprasta
dannite direktno kam moia e-mail
<form method="post" action="mailto:a_panov@xxxxxxx">
OBA4E tozi koito prasta dannite triabva da go izvarshva 4rez E-mail
klient t.e. da ima POP3 bazirana posta
Imam server s perl i iskam da stane
<form method="post" action="http://www.qsl.net/lz2app/send_to_e-mail.pl">
taka brouzera ste prasta dannite na sktipta po http-to i niama da se
nalaga da se izpolzva e-mail klient za izprastaneto im(90% ot divite
Useri ne znaiat kakvo e POP3 i
kato im kajesh i-mail ti kazvat www.abv.bg)
v tozi sly4ai dostapnostta na formata e ve4e na 100% ina4e ste ia
polzvat niakade okolo 5% ot posetitelite.
Jelaia formata da podava dannite na skripta i toi da pravi 2 nesta:
1. da preprati tezi danni kam e-maila mi a_panov@xxxxxxx
2. da izvede starnnitza 4e dannite sa izprateni yspeshno
dosega: webbrouser>emailclient>mail.ru
da stane webbrouser>perlskript>mail.ru & html file sas saobstenie
to4ka 2. ia namerix kak se realizira:
-----------------------------------------------------------------------------
print "Content-type: text\html \n\n";
print "<html>\n<head><title>?????? ?????? ? ????????? ???????!</title>\n";
print "<meta http-equiv="content-type" content="text/html;
charset=windows-1251">\n</head>\n";
print "<body>\n<h2 align="center">?????? ?????? ? ?????????
???????!</h2><br><h2 align="center">Your Order is send
successfully!</h2><p>\n";
print "??? <a href="http://www.baterii.hit.bg">????????</a>
?????????.<br>To <a href="http://www.baterii.hit.bg">main</a>
page.</p>\n</body></html>";
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
blagodaria vi predvaritelno(+ tova sam i dyplex i jiveia sas tastata)
blagodaria
<HR>
<UL>
<LI>application/x-pkcs7-signature \\\\\\\\\ \\\\: smime.p7s
</UL>
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|