FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » values won't transfer
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: values won't transfer [message #183664 is a reply to message #183663] Thu, 07 November 2013 18:56 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <e2vbaluuftp4$(dot)48nrw7i8j930(dot)dlg(at)40tude(dot)net>, richard
<noreply(at)example(dot)com> wrote:

> www.mroldies.net/index.php
>
> this is not the same page as the home page as that is still active for the
> moment.

But you reference that in your code below. So that is what will be
used, not some other version.

> I am trying to pass the value in the url to the iframe.
> No matter what I try, it won't.
> I had to use the \" in order for the link to show properly.
> The iframe is named "show".
>
> My thinking is that the javascript has somehow destroyed that.

What javascript? You haven't shown any.

> Question is, how do I make it work so that the value "tune" will pass
> properly?
>
>
>
>
>
>
> <div style="float:left; width:5in; height:6in; overflow:auto;
> border:solid 2px #00ff00; padding:10px;">
> <ol>
> <?php
> $numbers=range(1,200);
> shuffle($numbers);
>
> foreach($numbers as $play) {
>
> $htp="http://mroldies.net/index.php?tune=".$play." target=\"show\"";
>
> echo "<li>";
> $asong=$playme[$play][4];
> echo "<a class='aplay' href='".$htp."'
> data-src='http://mroldies.net/200/";
> echo $asong;
> echo ".mp3'>";
> echo $playme[$play][2]." - ".$playme[$play][0]." #
> ".$playme[$play][1];
> echo "<br>";
> echo $playme[$play][3];
> echo "</a>";
>
> echo "</li>\n";
> }
>
> ?>
> </ol>
> </div>


Is the above part of your new mroldies.net file? If so, why are you
loading another copy of it into an iframe within it? And otherwise,
what are you doing inside the iframe to try to obtain the value of
tune?

The above didn't load anything into the iframe when I tried it; I
haven't looked into why. Personally I use open(), write(), and close()
to write an html string into an iframe, which may not be the best way
to do it but works well enough for me.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trying to create a .bat file for windows using fwrite(
Next Topic: $dom->loadHTMLFile() error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 04:57:13 GMT 2024

Total time taken to generate the page: 0.05707 seconds