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

Home » Imported messages » comp.lang.php » How to transfer value to iframe?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: resolved?? Re: How to transfer value to iframe? [message #183176 is a reply to message #183163] Fri, 11 October 2013 15:39 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Thu, 10 Oct 2013 22:30:43 -0400, Norman Peelman wrote:

> On 10/10/2013 07:43 PM, richard wrote:
>> On Thu, 10 Oct 2013 18:13:30 -0400, Norman Peelman wrote:
>>
>>> On 10/10/2013 01:01 PM, richard wrote:
>>>> On Wed, 9 Oct 2013 22:32:22 -0400, richard wrote:
>>>>
>>>> > http://mroldies.net/200/audiox.php
>>>> >
>>>> > First, the sound will work only in firefox.
>>>> > So don't go bashing me for that.
>>>>
>>>>
>>>> <?php $number=$numbers[0];
>>>> echo '<iframe id="x1" src="audiox1.php?asong='.$number.'"
>>>> name="alpha"></iframe>';
>>>> ?>
>>>>
>>>> At least the first number is now displayed.
>>>>
>>>>
>>> echo "<iframe id=x1
>>> src='audiox1.php?asong=$number&name=$alpha'></iframe>";
>>>
>>>
>>> No need to quote the *values*, they are sent as text. Not sure what
>>> you're doing with -alpha-, I assume it is a variable as well...
>>
>> BULLSHIT!
>> target="alpha" is a valid attribute, it is not a value. And there is no
>> $ needed in the values section.
>>
>>
> What in the world are you talking about? This has nothing to do with
> the -target- attribute. You said 'At least the first number is now
> displayed.' so I thought you would eventually substitute "alpha" with
> some variable content so I suggested it that way, also fixing your URL
> by adding the '&' between them.

Norman, you've become confused by Richard's string quoting.

His php strings are single quoted and he uses double quotes for his html.

This means that php variable translation does not take place in the
strings.

In his initial example, name="alpha" was an attribute of the iframe, not
part of the query string of the src url.

This is why he has to replace songid with

'.$songid.'

instead of

$songid

Initially he said he was using this:

<iframe id="x1" src="audiox1.php?asong=songid" name="alpha"></iframe>

But he typically omitted to tell us whether this was in a heredoc or echo
with single quoted strings (or even a nowdoc).

In a heredoc, he could use $songid ( or even {$songid} ) but if it was an
echo with single quotes, he would need to use '.$songid.'

Subsequently he said '.$songid.' worked, so I deduce backwards from that
that richard was using single quoted php string with echo.

This is an example of classic richard, he feeds you half the problem and
the nature of the original problem only becomes clear after you've solved
for all possible variations and he's picked the solution that works. It
would be so much easier if he would learn to ask the right question, but
that's probably a lost cause now.

Mind you, I suspect so is his website. I still haven't worked out what
niche he expects to fill that isn't already fully covered by a
combination of you tube and wikipedia.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: please unsubscribe me
Next Topic: Can't change upload_max_filesize
Goto Forum:
  

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

Current Time: Fri Nov 22 16:27:36 GMT 2024

Total time taken to generate the page: 0.06203 seconds