Re: Is it Possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Figured it out from the other way....
hope others may find this useful

<script language="javascript" src="yourscript.php"></script>

Note that what ever you optput in your php do that with

echo "document.write('asdfasdf');"

/sagar

----- Original Message -----
From: "Erwin Kerk" <erwin@xxxxxxxxxxx>
To: "Sagar C Nannapaneni" <sagar@xxxxxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Friday, February 04, 2005 5:36 PM
Subject: Re:  Is it Possible?


> Sagar C Nannapaneni wrote:
> > I'm calling a php script with <img> tag
> >
> > for ex: <img src="http://localhost/test.php?img=asfd";>
> >
> > and the test.php is as follows...
> >
> > test.php
> > ------------
> > <?
> > ...
> > ...
> > some server side validations
> > ...
> > readfile("abcd.gif");
> > ?>
> > -----------------------------------------------
> >
> > Theres no problem with this..its working fine. But i want to return some
text(or Html) the
> > browser along with the image. So is there anyway that i can send the
text to the browser
> > in this fashion. Even anyother solution other than the <img> is also Ok.
Showing img
> > is not a priority for me but sending the text is..
> >
> > Any help will be greatly appreciated..
> >
> > Thanks,
> > /sagar
>
>
> I guess you're trying to get some data from the server after the page
> load (problably by javascript), so this might be of help:
>
> http://www.scss.com.au/family/andrew/webdesign/xmlhttprequest/
>
>
>
> Erwin Kerk
>
>
> --
> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux