Huh? Are you talking about the result of the javascript confirm()
function? Yes, it returns true or false. You can't pass that value
anywhere (well, you could assign it to a form elements value). You
generally use the result of the confirm() function to decide whether you
submit the form or not. If confirm() returns true, submit and process
the form, otherwise, do nothing.

---John Holmes...

> -----Original Message-----
> From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 12:44 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Ah ha ... confirm delete.
> 
> confirm() returns a true or fulse.
> 
> what is confirm called as a veriable?
> 
>  <?php
> 
>  if ($confirm == "true") {
> 
>  $sql = "DELETE FROM stompers WHERE sUser='$sUser' AND
sEmail='$sEmail'
> LIMIT 1";
> 
>  $sql_result = mysql_query($sql, $connection) or die ("Could not get
> Query");
> 
>  } else if ($confirm == "false") {
> 
>  }
> 
>  ?>
> 
> ---
> Philip J. Newman.
> Head Developer.
> PhilipNZ.com New Zealand Ltd.
> http://www.philipnz.com/
> [EMAIL PROTECTED]
> 
> Mob: +64 (25) 6144012.
> Tele: +64 (9) 5769491.
> 
> Family Site:
> Philip J. Newman
> Internet Developer
> http://www.newman.net.nz/
> [EMAIL PROTECTED]
> 
> *****************************
>   Friends are like Stars,
>   You can't always see them,
>   But you know they are there.
> 
> *****************************
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to