Jump to content
php.lv forumi

javascript confirm


neo

Recommended Posts

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

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 by Blitz
Link to comment
Share on other sites

×
×
  • Create New...