Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11343
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How to transfer value to iframe? |
| Date | 2013-10-10 13:25 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <l369sp$lqf$2@dont-email.me> (permalink) |
| References | <12cqbhii4rehb.1tf3fbhsnvt9o$.dlg@40tude.net> <l355tu$kb0$1@news.albasani.net> <68c95v23ldk4$.azmbhc33v7v4.dlg@40tude.net> |
On Wed, 09 Oct 2013 23:31:55 -0400, richard wrote:
> 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.
That is as expected, you're setting the value of asong in the query
string to the text value songid.
Depending on how you're generating the string:
<iframe id="x1" src="audiox1.php?asong=songid" name="alpha"></iframe>
and assuming that $songid is a php variable containing the numeric songid
that you want to pass, you may wish to replace songid in the above
construction with one of:
' . $songid . '
$songid
{$songid}
I also suggest that you read
http://www.php.net/manual/en/language.types.string.php
very carefully. There are some very important comments there about what
happens inside different types of string literal depending on the quoting
methods used.
--
Denis McMahon, denismfmcmahon@gmail.com
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