please try the following and let us know what the results are.

<title><? echo $res; ?></title>
<img src="<? echo $dir; ?>/<? echo $res; ?>.jpg" >
</body>


----- Original Message -----
From: "Ceyhun Güler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:41 AM
Subject: Re: [PHP] parse error? how can I print spesific message for all
error mesage


> <? $dir = $HTTP_GET_VARS["dir"];
> $dir = str_replace(" ","/",$dir);
> $res = $HTTP_GET_VARS["res"];
> ?>
> <title><?=$res;?></title>
> <img src="<?=$dir;?>/<?=$res;?>.jpg" >
> </body>
>
> My code is running now until if a link comes trough here like
> "resimgoster.php?dir=main products images&res=pic01"
> but  if you write resimgoster.php to your adress bar without dir and res
> this script write_>
> Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php
on
> line 1
>
> Warning: Undefined index: res in c:\inetpub\wwwroot\kocak\resimgoster.php
on
> line 3
>
> I want to give a message like "Not Avaiable"  if dir and res is not
entered!
>
>
>
> --
> 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