lieka cookie , bet jei duomenu daug tai irgi ne ir mysql, bet session manyciau primtinesnis variantas, bet turbut busiu gincijamas trecias variantas su 1.php sukurti reikiama piesineli ir issaugoti i faila "sdf" <sdfsdf@asdf.com> wrote in message news:gnllk4$m7f$1@trimpas.omnitel.net... > per get'a negerai, nes duomenu bus daug, o su sessija nelabai norisi > > "Nerijus T" <news@upe.lt> wrote in message > news:gnlk3k$jfa$1@trimpas.omnitel.net... >> Vienas budas kaip sakiau >> echo '<img >> src="2.php?file=',$file,'&var1=',$var1,'&var2=',$var2,'&var3=',$var3,'" >> alt="pic" />'; >> kitas budas su session >> >> echo '<img src="2.php?sessid=',$sessid,'" alt="pic" />'; >> >> >> "blah" <blah@blah.bl> wrote in message >> news:gnk86h$h0b$1@trimpas.omnitel.net... >>> bandau daryti taip: >>> [1.php] >>> <? >>> if ($_POST) >>> { >>> echo '<img src="2.php" alt="pic" />'; >>> } >>> else >>> { >>> //forma >>> } >>> ?> >>> >>> [2.php] >>> <? >>> if (isset($_POST) && isset($_FILES['uploaded_file'])) >>> { >>> $image = ImageCreateTrueColor(100,100); >>> ImageFilledRectangle($image, 0, 0, 99, 99, 0x555115); >>> Header('Content-type: image/gif'); >>> ImageGif($image); >>> ImageDestroy($image); >>> } >>> ?> >>> >>> taciau nepraeina, bet suveikia viskas padarius >>> >>> [1.php] >>> <? >>> if ($_POST) >>> { >>> include_once('2.php'); >>> } >>> else >>> { >>> //forma >>> } >>> ?> >>> >>> [2.php] >>> <? >>> if (isset($_POST) && isset($_FILES['uploaded_file'])) >>> { >>> echo "ok"; >>> } >>> ?> >>> Kaip isspresti sita problema? >>> >>> >>> >>> >>> >>> "Domas Jokubauskis" <domas@jozita.lt> wrote in message >>> news:pan.2009.02.18.20.31.11@jozita.lt... >>>> On Wed, 18 Feb 2009 22:00:44 +0200, blah wrote: >>>>> yra du failai 1.php ir 2.php >>>>> 1.php generuoja gif arba teksta >>>>> pvz: >>>>> <? >>>>> if ($kazkas) >>>>> { >>>>> echo 'tekstas tekstas'; >>>>> } >>>>> else >>>>> { >>>>> $img = ImageCreateTrueColor(100, 100); >>>>> Header('Content-type: image/gif'); >>>>> ImageGif($img); >>>>> ImageDestroy($img); >>>>> } >>>>> ?> >>>>> >>>>> ar imanoma kazkokiu budu 2.php atvaizduot 1.php nesvarbu ar jis butu >>>>> tekstas ar paveikslelis ? >>>>> dekui >>>> >>>> >>>> 1.php pvz.: >>>> <? >>>> if (!$kazkas) >>>> { >>>> $img = ImageCreateTrueColor(100, 100); >>>> Header('Content-type: image/gif'); >>>> ImageGif($img); >>>> ImageDestroy($img); >>>> } >>>> ?> >>>> >>>> 2.php pvz.: >>>> <? >>>> if ($kazkas) >>>> { >>>> echo 'tekstas tekstas'; >>>> } >>>> else >>>> { >>>> echo("<img alt="mano gra