hoho Posted August 21, 2006 Report Share Posted August 21, 2006 Sveiki! Mana forma apstrada datus un vajag lai skripts atgriez info sekejosa veidaa: ... ... ---=_Part_1 Content-Type: text/xml; charset=utf-8 <?xml version="1.0" encoding="utf-8"?> <ironroad-ad> <auth> <username>test</username> <password>test</password> </auth> <ad id="4718" expiredate="2006-07-11T00:00:00"> <texts> <text lang="en">Test</text> <text lang="sv">Tˆst</text> </texts> </ad> </ironroad-ad> ---=_Part_1 Content-Type: multipart/mixed; boundary="-=_Part_2" ... ... Un probleema ir taada, ka es nevaru ieks taa skripta izdrukaat XML. Man vajag vienkarsi so XML gabalinju dabuut tekstaa. Ja es drukaaju vienkaarsi ar echo, tad tas XML neatteelojas kaads ir, ja izmantoju htmlspecialchars, tad visi tagi paarveidojas un es taalaak nevaru paadot sos datus. Ko var izdomaat? Kaa izdrukaat? Link to comment Share on other sites More sharing options...
Delfins Posted August 21, 2006 Report Share Posted August 21, 2006 tak uztaisi lai skripts atgriež pareizo XML nevis jau gatavu priekš emaila... Link to comment Share on other sites More sharing options...
hoho Posted August 21, 2006 Author Report Share Posted August 21, 2006 bet man vienalaga vajag kaut kaa savienot teksts + xml + teksts un peec tam to visu kopaa drukaat .... bet kaa? :) Link to comment Share on other sites More sharing options...
goldy Posted August 21, 2006 Report Share Posted August 21, 2006 šaubos vai maz tā var browserim pastāstīt,ka dokumenta vidū mainās tā tips. Link to comment Share on other sites More sharing options...
Delfins Posted August 21, 2006 Report Share Posted August 21, 2006 ja es pareizi sapratu, tad tu drukā e-mail kontentu, tātad... 1.) sadalam kontentu uz tekstu + attachmentus 2.) izdrukājam katru kontentu atsevišķi.. to biš XML-am tik vien jādābū hilite f-ja kaut kur... bildes tādā pašā veidā var izvadīt Link to comment Share on other sites More sharing options...
hoho Posted August 21, 2006 Author Report Share Posted August 21, 2006 bljin, neko nesaprotu. tagad meginu izdrukaat xml $xml = '<?xml version="1.0" encoding="utf-8"?> <ironroad-ad> <auth> <username>test</username> <password>test</password> </auth> <ad id="4718" expiredate="2006-07-11T00:00:00"> <texts> <text lang="en">Test</text> <text lang="sv">Tˆst</text> </texts> </ad> </ironroad-ad> '; un rada kljudu A potentially dangerous Request.Form value was detected from the client (---="..."utf-8"?> <ironroad-ad> <aut..."). Link to comment Share on other sites More sharing options...
Delfins Posted August 21, 2006 Report Share Posted August 21, 2006 doh... tu vispār par PHP runā? mok sajauci forumu... Link to comment Share on other sites More sharing options...
hoho Posted August 22, 2006 Author Report Share Posted August 22, 2006 neee, nu ir taa, ka PHP genere so kodu un suuta sagenereetus datus uz ASP skriptu, kuru es reaali neredzu un atgriez XML ... un man ir probleema pareizi saganereet datus ar PHP ... :( Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 22, 2006 Report Share Posted August 22, 2006 hoho --> atsleedz iespeeju ka PHP var izmantot <? tagu !!! (atstaaj tikai pilno <?php..... jo savaadaak vinsh korekti neljaus izmantot <?XML Link to comment Share on other sites More sharing options...
Roze Posted August 22, 2006 Report Share Posted August 22, 2006 Nu vai ta grūti echo '<?xml' ? Link to comment Share on other sites More sharing options...
Recommended Posts