Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11392

Re: resolved?? Re: How to transfer value to iframe?

From Norman Peelman <npeelman@cfl.rr.com>
Newsgroups comp.lang.php
Subject Re: resolved?? Re: How to transfer value to iframe?
Date 2013-10-11 19:04 -0400
Organization A noiseless patient Spider
Message-ID <l3a05m$omf$1@dont-email.me> (permalink)
References (1 earlier) <orlpb7ptvlye.o9v9q8t427lk.dlg@40tude.net> <l378qb$r9n$1@dont-email.me> <akfd5hqjwt40.p3l5x03dp9av.dlg@40tude.net> <l37nsk$qjg$1@dont-email.me> <l3963e$hql$3@dont-email.me>

Show all headers | View raw


On 10/11/2013 11:39 AM, Denis McMahon wrote:
> 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.
>

   Yes, I actually see that now, but then again I usually keep my -id- 
and -name- attributes together at the beginning of a tag. Is it required 
no, but it sure does make for a bit of consistency when I'm looking for 
bugs in the same typical places for the same types of data. It was a 
misunderstanding on my part. As a general rule I shy away from doing a 
lot of concatenation and "\" escaping as much as I possibly can. I also 
try to sway others from it as well but, to each their own. It makes code 
painful to debug.

-- 
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to transfer value to iframe? richard <noreply@example.com> - 2013-10-09 22:32 -0400
  Re: How to transfer value to iframe? David Robley <me@home.invalid> - 2013-10-10 13:43 +1030
    Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-09 23:31 -0400
      Re: How to transfer value to iframe? David Robley <me@home.invalid> - 2013-10-10 14:20 +1030
        Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-10 00:01 -0400
          Re: How to transfer value to iframe? Jeff North <jnorthau@yahoo.com.au> - 2013-10-10 15:40 +1100
            Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-10 00:51 -0400
              Re: How to transfer value to iframe? "J.O. Aho" <user@example.net> - 2013-10-10 07:10 +0200
            Re: How to transfer value to iframe? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-11 01:15 +0200
      Re: How to transfer value to iframe? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-10 13:25 +0000
  Re: How to transfer value to iframe? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-10 13:12 +0000
  resolved?? Re: How to transfer value to iframe? (was: How to transfer value to iframe?) richard <noreply@example.com> - 2013-10-10 13:01 -0400
    Re: resolved?? Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-10 13:28 -0400
      Re: resolved?? Re: How to transfer value to iframe? Derek Turner <frderek@cesmail.net> - 2013-10-10 17:39 +0000
        Re: resolved?? Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-10 15:47 -0400
          Re: resolved?? Re: How to transfer value to iframe? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-10 21:31 +0000
            Re: resolved?? Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-10 19:45 -0400
              Re: resolved?? Re: How to transfer value to iframe? The Natural Philosopher <tnp@invalid.invalid> - 2013-10-11 01:45 +0100
              Re: resolved?? Re: How to transfer value to iframe? Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-11 08:17 -0700
              Re: resolved?? Re: How to transfer value to iframe? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-11 15:27 +0000
                Re: resolved?? Re: How to transfer value to iframe? Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-11 21:21 -0700
          Re: resolved?? Re: How to transfer value to iframe? David Robley <me@home.invalid> - 2013-10-11 11:43 +1030
    Re: resolved?? Re: How to transfer value to iframe? Norman Peelman <npeelman@cfl.rr.com> - 2013-10-10 18:13 -0400
      Re: resolved?? Re: How to transfer value to iframe? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-11 01:37 +0200
        Re: resolved?? Re: How to transfer value to iframe? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-11 01:51 +0200
      Re: resolved?? Re: How to transfer value to iframe? richard <noreply@example.com> - 2013-10-10 19:43 -0400
        Re: resolved?? Re: How to transfer value to iframe? Norman Peelman <npeelman@cfl.rr.com> - 2013-10-10 22:30 -0400
          Re: resolved?? Re: How to transfer value to iframe? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-11 13:05 +0200
          Re: resolved?? Re: How to transfer value to iframe? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-11 15:39 +0000
            Re: resolved?? Re: How to transfer value to iframe? Norman Peelman <npeelman@cfl.rr.com> - 2013-10-11 19:04 -0400

csiph-web