bobsters Posted March 14, 2010 Report Share Posted March 14, 2010 (edited) tātad! Man uz ieteikt dr.lv links izskatas sadi <a href=\"http://www.draugiem.lv/say/ext/add.php?title={$showdata["text"]}&link=http://".$_SERVER['SERVER_NAME']."/anekdotes/index.php?p=anekdotes&{$showdata["id"]}&titlePrefix=jocins_spocins \"> un viss strada lielisiski tikai kad ievada visu un links paradas dr.lv lapa tad uzspiezot uz linka atveras pareiza lapa tikai apraujas pie anekdotes. Neizvada visu urli piem http://xxx.lv/index....nekdotes&id=xxx bet izvada http://xxx.lv/index.php?p=anekdotes Ceru ka sapratat ko domaju visadi esu meginajis bet dr.lv atmet manu tekstu kas ir aiz "&" Edited March 14, 2010 by bobsters Quote Link to comment Share on other sites More sharing options...
marcis Posted March 14, 2010 Report Share Posted March 14, 2010 Simbols & atdala GET mainīgos. Tātad tavs id padodas ka jau pavisam cits mainīgais, nevis sastāvdaļa no link. Risinājums ir šo mainīgo urlenkodēt - & pārtaisam par %26 echo '<a href="http://www.draugiem.lv/say/ext/add.php?title='.urlencode($showdata["text"]).'&link='.urlencode('http://'.$_SERVER['SERVER_NAME'].'/anekdotes/index.php?p=anekdotes&'.$showdata["id"]).'&titlePrefix=jocins_spocins">links</a>'; Quote Link to comment Share on other sites More sharing options...
bobsters Posted March 14, 2010 Author Report Share Posted March 14, 2010 paldies! tapec es domaju kur kiseli viss iet! izmeginaju daudz dazadi bet tik talu nebiju aizdomajies Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.