Re: something wrong
| From: | Eduardo Kokubo | Date: | Tue, 07 Aug 2001 17:49:07 +0000 |
| Subject: | Re: something wrong | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61668@lists.php.net to get a copy of this message | ||
I tried it using return and without it, but unfortunly neither cases
worked.
----- Original Message -----
From: Chris Cocuzzo <cuzo@mediaone.net>
To: Eduardo Kokubo <kokubo@inf.univali.br>
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 <kokubo@inf.univali.br>
> To: <php-general@lists.php.net>
> Cc: <kokubo@inf.univali.br>
> 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");
>
> }
>
>
>