neo Posted April 6, 2006 Report Share Posted April 6, 2006 man ir shads skripts: <script> var name=confirm('Vai tieshaam veeltaies dzeest?'); if (name==true) { } else { } </script> Jautaajums: vai es kaut kaa varu ieintegreet php kodu ja notiek apstiprinaashana. Meeginaaju, bet nesanaak. meeginaaju piemeeram shaadi: <? function a() { $b="985"; } ?> <script> var name=confirm('Vai tieshaam veeltaies dzeest?'); if (name==true) { <? echo a(); ?> } else { } </script> Lūdzu lieto [ code ] bbtagus!! Shitais variants laikam cauri neies. Link to comment Share on other sites More sharing options...
v3rb0 Posted April 6, 2006 Report Share Posted April 6, 2006 * window.location.href='delete.php?id=123' * vai [kā vienmēr] izmanto ajax! Link to comment Share on other sites More sharing options...
Blitz Posted April 6, 2006 Report Share Posted April 6, 2006 (edited) javascript darbojas klienta pusee, bet php servera pusee... taakaa tu nekadi nevari ar javascript izsaukt php... vienigais vari padot kadu vertibu caur $_GET kas izsauc php kodu... + taakaa v3rbo radija :) Edited April 6, 2006 by Blitz Link to comment Share on other sites More sharing options...
Stopp Posted April 6, 2006 Report Share Posted April 6, 2006 vēl caur js var uzcept cepumus. Link to comment Share on other sites More sharing options...
Recommended Posts