Reply to Re: Executing php code within an iframe

Your name:

Reply:


Posted by Nospam on 10/11/06 20:32

"Harlan Messinger" <hmessinger.removethis@comcast.net> wrote in message
news:4p4k10Fh9fhvU1@individual.net...
> Nospam wrote:
> > "Jonathan N. Little" <lws4art@centralva.net> wrote in message
> > news:dc5b3$452c454e$40cba77e$21351@NAXS.COM...
> >> Nospam wrote:
> >>
> >>> Basically I have a php script that shows an image:
> >>>
> >>> <?php
> >>>
> >>> echo "<img src='http://www.example.com/image1.jpg' width='60'
> > height='60'>";
> >>> ?>
> >>>
> >>> I also have an iframe that has this:
> >>>
> >>> <iframe src="http://www.example.com/script1.php"></iframe>
> >>>
> >>> However the image is not displayed at all (i.e the script is not run,
> > but it
> >>> runs if I run it offline)
> >>>
> >>> I am wondering what needs to be done for the script to run online
> >> Why the IFRAME at all??? Just
> >>
> >> <?php include('script1.php'); ?>
> >>
> >> and be done with it!
> >
> > I would like anyone viewing the page to be redirected to the php script
> > within the iframe (or directed still somehow on the same page, was told
an
> > iframe could do this)
>
> I don't know what you mean by "directed" and "redirected". From your
> previous message I assumed you meant that script1.php was the file that
> contained the code you showed us that generates the IMG tag.

Yes

> So the
> response from script1.php should be displayed inside the IFRAME. No
> redirection is involved in that.

I should have mentioned that the iframe should have two images, one the
initial image, and the second the redirected image contained in script1.php

i.e

initially

<html>
<title> Tile</title>
....<iframe scr= "http://www.example.com/1.html "></iframe>
</html>

should redirect to:

<html>
<title> Tile</title>
....<iframe scr= "http://www.example.com/script1.php"> </iframe>
</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация