Jump to content

getting echo data ?


Guest t0rtilla

Recommended Posts

Guest t0rtilla
[code]<?php

if($_GET['id']=='0')
{

        $a = '/test/truesalwo.png';
        $set = setcookie('img', $a);
        echo '<a href="?id=1" onClick="'. $set .'">show image</a>';

}
if($_GET['id']=='1')
{

        $a = $_COOKIE['img'];
        echo '<img src="'. $a .'">';

}

?>[/code]

solved my problem this way......... thnx evry1
Link to comment
https://forums.phpfreaks.com/topic/12886-getting-echo-data/#findComment-49503
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.