Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11340
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How to transfer value to iframe? |
| Date | 2013-10-10 07:10 +0200 |
| Message-ID | <bbmr5nF2mlpU1@mid.individual.net> (permalink) |
| References | (2 earlier) <68c95v23ldk4$.azmbhc33v7v4.dlg@40tude.net> <l3583l$7et$1@news.albasani.net> <1072h1gn3qh4z.axclc9ryd5s7$.dlg@40tude.net> <jtbc5954ck31cb3hemsusokueprgnbfu1t@4ax.com> <3key9ksh6plj.mz1o0un2ccrs.dlg@40tude.net> |
On 10/10/13 06:51, richard wrote: > On Thu, 10 Oct 2013 15:40:55 +1100, Jeff North wrote: > >> On Thu, 10 Oct 2013 00:01:56 -0400, in comp.lang.php richard >> <noreply@example.com> >> <1072h1gn3qh4z.axclc9ryd5s7$.dlg@40tude.net> wrote: >> >>> | On Thu, 10 Oct 2013 14:20:56 +1030, David Robley wrote: >>> | >>> | > richard wrote: >>> | > >>> | >> On Thu, 10 Oct 2013 13:43:42 +1030, David Robley wrote: >>> | >> >>> | >>> richard wrote: >>> | >>> >>> | >>>> http://mroldies.net/200/audiox.php >>> | >>>> >>> | >>>> First, the sound will work only in firefox. >>> | >>>> So don't go bashing me for that. >>> | >>>> >>> | >>>> I have it set up so that a shuffled array will be displayed any time the >>> | >>>> page is loaded. Hopefully. >>> | >>>> What I want to do is to ensure that item one in the menu list will match >>> | >>>> what is in the iframe. >>> | >>>> >>> | >>>> $_get[] relies on the values being transferred via a link. >>> | >>> >>> | >>> Not so - it uses the query string - >>> | >>> https://en.wikipedia.org/wiki/Query_string - which may be passed via a >>> | >>> clickable link, or as part of a URL >>> | >>> >>> | >>>> At this point, no link has been clicked on to set the value. >>> | >>>> So how do I properly set the intitial value? >>> | >>> >>> | >>> <iframe id="x1" src="audiox1.php?a=foo&b=bar&c=baz" >>> | >>> name="alpha"></iframe> >>> | >>> >>> | >>> Simply pass the value(s) you need to utilise in the iframe >>> | >> >>> | >> I tried this >>> | >> >>> | >> <iframe id="x1" src="audiox1.php?asong=songid" name="alpha"></iframe> >>> | >> >>> | >> >>> | >> Assigining songid as $songid=$play[0]; >>> | >> >>> | >> Retrieving value through >>> | >> >>> | >> >>> | >> $number=$_GET["asong"]; >>> | >> >>> | >> echo $number; >>> | >> >>> | >> >>> | >> >>> | >> Results in "songid" being printed. >>> | > >>> | > Not surprisingly, because that is what you have set as the value for asong >>> | > in the iframe link. If you want to pass a value contained in a variable, you >>> | > should use the variable, not a string. Look closely at what you are doing >>> | > when calling the iframe. >>> | > >>> | > <iframe id="x1" src="audiox1.php?asong=songid" name="alpha"></iframe> >>> | >>> | so my question kind of still stands. >>> | how do I make asong=?????? as the given initial value of the shuffled >>> | array? >> >> Shhheeeeesssshhh. >> <iframe id="x1" src="audiox1.php?asong="+songid name="alpha"></iframe> > > Wonder why I get absolutely nothing as a reeult? > Guess it's because nothing got assingned eh? > If you copied the example as it was, you never get a value passed to the frame, if you did make it as you should for appending a php value, then the problem is that you haven't assigned a value. Maybe something like http://www.w3schools.com/php could help you on the way with the simple things. -- //Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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