anry Posted January 30, 2007 Report Share Posted January 30, 2007 (edited) .............. echo $teksts; ?> <anchor> Sūtīt <go href="tomail.php" method="post"> <postfield name="text" value="<? echo $text; ?>"/> </go> </anchor <?............. un ir otrs fails, kuram jānolasa mainīgais $text un jāieliek laukā input, tas mobīlajam telefonam wap <?php print "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; ?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head> <card title="title"> <p> <? @$text=$HTTP_POST_VARS['text']; ?> <input type="text" name="name" value="<? echo strip_tags($text); ?>" /><br/> </p> <anchor> Login <go href="sent_mail.php" method="post"> <postfield name="name" value="$(name)"/> <postfield name="emailto" value="$(emailto)"/> <postfield name="text" value="$(text)"/> </go> </anchor> </card> </wml> kaut kas nenostrādā, palīdziet ja variet Edited January 30, 2007 by anry Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 Es nepārzinu wml markapu, bet iespējams zinu, ka tu redzēsi, kur kļūda, ja pirms $text = $HTTP.... noņemsi @ simbolu. (Tas ir simbols, kas noslāpē kļūdas paziņojumus). Un problēma visticamāk ir tur, ka konfigurācijā ir izslēgta $HTTP_POST_VARS izmantošana. Tā vietā izmanto $_POST (un attiecīgi $_GET). $HTTP_.... ir deprecated. Link to comment Share on other sites More sharing options...
Hamlets Posted January 30, 2007 Report Share Posted January 30, 2007 Varētu pilnu pirmo kodu? Wml pārzinu labi un man tur liekas bišķīt nesaprotami - <? echo $text; ?>, no kurienes ņemas $text? Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 echo $text; ?> <anchor>Sūtīt<go href="tomail.php" method="post"> <postfield name="text" value="<? echo $text; ?>"/> </go> </anchor> arī ar post padošānu nesanāk, laikam, ka šeit kļūda Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 (edited) Hamlet, tur kļūdījos tur ar ir text nevis teksts, bet tur nav tā kļūda, dati nepadodas tālāk Edited January 30, 2007 by anry Link to comment Share on other sites More sharing options...
Hamlets Posted January 30, 2007 Report Share Posted January 30, 2007 (edited) Uzģenerētajā pirmajā lapā view source ir : value="teksts tāda kā $text" ? Un kas tieši tev nenostrādā? Nav teksta input logā iekš tomail.php ? Edited January 30, 2007 by Hamlets Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 (edited) Uzģener�#8220;tajā pirmajā lapā view source ir : value="teksts tāda kā $text" ? Un kas tieši tev nenostrādā? Nav teksta input logā iekš tomail.php ? Tīeši tā nav teksts inpput logā tomail.php Edited January 30, 2007 by anry Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 $(name) Kas tā par sintaksi ? nevajadzētu <?php echo $name; ?> ? Link to comment Share on other sites More sharing options...
Hamlets Posted January 30, 2007 Report Share Posted January 30, 2007 (edited) Ar kādu pārlūku skaties un lapu? Opera 9 un un augšu ir problēmas ar šiem input laukiem.... Andrisp, tas taču nav iekš <? ?> $(name) ir wml kods, tas ir tur būs teksts no imput lauka name :) Edited January 30, 2007 by Hamlets Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 $(name) Kas tā par sintaksi ? nevajadzētu <?php echo $name; ?> ? Tas ir wml sintakse tas nostrādā, tas nodot datus sūtīšanai, bet laukā input dati netiek saņemti Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 Uztaisi var_dump($HTTP_POST_VARS['text']); Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 Ar kādu pārlūku skaties un lapu? Opera 9 un un augšu ir problēmas ar šiem input laukiem....Andrisp, tas taču nav iekš <? ?> $(name) ir wml kods, tas ir tur būs teksts no imput lauka name :) testēju gan caur emulātoru, gan caur mobīlo telefonu =) Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 (edited) Uztaisi var_dump($HTTP_POST_VARS['text']); atgriež NULL , tātad dati netiek padoti pareizi? Edited January 30, 2007 by anry Link to comment Share on other sites More sharing options...
andrisp Posted January 30, 2007 Report Share Posted January 30, 2007 Un $_POST['text'] pamēģināji $HTTP_POST_VARS['text'] vietā ? Link to comment Share on other sites More sharing options...
anry Posted January 30, 2007 Author Report Share Posted January 30, 2007 Un $_POST['text'] pamēģināji $HTTP_POST_VARS['text'] vietā ? Jā Link to comment Share on other sites More sharing options...
Recommended Posts