persix Posted January 7, 2004 Report Share Posted January 7, 2004 Vai kads var izpalidzet? Tad, kad es aizpildu formu, dati tiek posteti un ievietoti MySql, bet problema ir ta, ja es spiezu reload, tad tie dati tur tiek ievaditi atkartoti! Man vajadzetu vinus iznemt ara no memory! Link to comment Share on other sites More sharing options...
sviesc Posted January 7, 2004 Report Share Posted January 7, 2004 To visu var atrast Te http://php.lv/f/index.php?showtopic=533 :blink: Link to comment Share on other sites More sharing options...
persix Posted January 7, 2004 Author Report Share Posted January 7, 2004 Nu diemzel nekas nesanak! Man vienkarsi viss ir izveidots viena faila! Un tadel varbut rodas ta problema. Varbut kaud kada veida var atslegt reload, vai atbrivot to reload! Un vel kads jautajums. kada veida var nosutit scriptu, ja nu kas grib papetit un palidzet! Link to comment Share on other sites More sharing options...
sviesc Posted January 7, 2004 Report Share Posted January 7, 2004 un to linku uztaisi uz to pašu lapu kurā darbojies :blink: Link to comment Share on other sites More sharing options...
persix Posted January 7, 2004 Author Report Share Posted January 7, 2004 Nu laikam mes easam parpratusi viens otru! Tatad: Informacija tiek pievienota bez problemam, vieniga problema ir ta, ja es uzspiezu tadu podzinu ka refresh, tad vins man to informaciju ievieto vel vienu reizi, joa vairak refreshu, jo vairak informacijas, protams, ta informacija ir viena un ta pati! Link to comment Share on other sites More sharing options...
Vistu Zaglis Posted January 7, 2004 Report Share Posted January 7, 2004 Uztaisi pievienošanai atsevišķu failu, kurā ir tikai pievienošanas skripts un vairs nekā. Skripta galā header("Location: pamatfails.php"); Un būs laime tev un tavam suņam. Link to comment Share on other sites More sharing options...
sviesc Posted January 7, 2004 Report Share Posted January 7, 2004 1.uztaisi formu vienā lapā un insertēšanu otrā tādā kurš var tikt izpildīts pēc pieprasijuma 2. iemet šo kodu lapākura nodarbojas ar to insert padarīšanu <script> window.location='Tavalapa.php'; </script> 3. vari mēģināt to pašu scritu ielikt tajā lapā aiz postošanas :blink: Link to comment Share on other sites More sharing options...
persix Posted January 8, 2004 Author Report Share Posted January 8, 2004 Paldies. Viss ir sanacis, bet nu jasaka, ka tomer insert viena faila nu nekadi nevareju uztaisit, nacas izveidot kadu jaunu failinu. :rolleyes: Link to comment Share on other sites More sharing options...
Recommended Posts