I tried it using return and without it, but unfortunly  neither cases
worked.

----- Original Message -----
From: Chris Cocuzzo <[EMAIL PROTECTED]>
To: Eduardo Kokubo <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 2:21 PM
Subject: Re: [PHP] something worong


> hey-
>
> I'm not sure, but maybe try this:
>
> body onunload="<?php return apaga($diretorio);?>"
>
> for some reason i don't think that'd work, prolly because of the quotes
> around the php, however i think you need to call it that way. But can you
> ever use return that way??
>
> chris
>
>
> ----- Original Message -----
> From: Eduardo Kokubo <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 07, 2001 1:12 PM
> Subject: [PHP] something worong
>
>
> Hi,
>
> I'm using this code to delete a file using onunload, but this is not
> working. Can anyone please tell me why? I know the function apaga() works,
> but the onunload thing doesn't. I probably missed a detail.
>
> <html>
> <head>
> </head>
> <BODY onunload="return apaga($diretorio);">
> <?php
>
> function apaga($diretorio){
>
> unlink ("$diretorio.tgz");
>
> }
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to