Jump to content

aya

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Malaysia

Posts posted by aya

  1. echo "<script type=\"text/javascript\">varn stay =confirm (\"Item: ".$F_item."\");
    if(stay)
    top.location='received.php?stay=1';

    </script>";
    <?
    if($_GET['stay']) //check if stay contains a value equating to true

    {
    pilihPembekal($f_supp,$f_pem,&$dberror);
    }
    ?>

    here is my latest script, when i run it on server, the function of pilihPembekal () did not perform.

    please u check it. is it right? i write this script based on ur example. :(

  2. i write the function using php, but when i want to display msg box for confirmation, i used javascript. in confirmation box, if user choose yes, i want to execute the function that use PHP. can i write the script like that?

    the script is like this:

    echo "<script type=\"text/javascript\">var stay =confirm (\"Do You Agree?\");

    if(stay)

    here if the function using PHP

    </script>";

    how can i write the function of PHP in jscript ?

    please help me.......

×
×
  • Create New...