Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11924
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: changing iframe source via php |
| Date | 2013-11-22 16:30 +0100 |
| Message-ID | <528F789B.8020609@arnowelzel.de> (permalink) |
| References | <1s4gzmodspnfe$.1sw8nmo0gpova$.dlg@40tude.net> <1csll7c4jvn5r.1aym2fc9ijbqu.dlg@40tude.net> <221120131333285887%timstreater@greenbee.net> <1o5ng8lrsr0u9.fo074ldhvppi.dlg@40tude.net> |
Am 22.11.2013 14:48, schrieb richard:
> On Fri, 22 Nov 2013 13:33:28 +0000, Tim Streater wrote:
>
>> In article <1csll7c4jvn5r.1aym2fc9ijbqu.dlg@40tude.net>, richard
>> <noreply@example.com> wrote:
>>
>>> On Thu, 21 Nov 2013 17:23:00 -0500, richard wrote:
>>>
>>>> I'm trying to figure out a way so that I can change the iframe source with
>>>> just simply changing the src value.
>>>> But I keep getting a parse error.
>>>>
>>>> I set the posted value with a link.
>>>> value=1 src=page1
>>>> value=2 src=page2
>>>> value=3 src=page3
>>>> if value is anything else, then the home page is used.
>>>>
>>>> <iframe name="home" id="aframe" src="????">
>>>>
>>>> How od I code where the ? are??
>>>
>>> $apage=$_GET["page"];
>>> if (empty($apage)) {$apage=0;}
>>>
>>> if ($apage=1){
>> ^^^^^^ "Here we go again, oh watch him now, ..."
>>
> and I get the same results.
Because of different reasons but NOT because of your WRONG assignment
operation.
if($apage=1)
WILL ALWAYS SET $apage to 1, because a single "=" ALWAYS means "assign
value from the right to the left" - ALWAYS!
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
changing iframe source via php richard <noreply@example.com> - 2013-11-21 17:23 -0500
Re: changing iframe source via php David Robley <me@home.invalid> - 2013-11-22 09:40 +1030
Re: changing iframe source via php invalid@example.com - 2013-11-22 11:21 +1100
Re: changing iframe source via php Richard Yates <richard@yatesguitar.com> - 2013-11-21 16:32 -0800
Re: changing iframe source via php richard <noreply@example.com> - 2013-11-21 20:23 -0500
Re: changing iframe source via php Richard Yates <richard@yatesguitar.com> - 2013-11-21 19:24 -0800
Re: changing iframe source via php Arno Welzel <usenet@arnowelzel.de> - 2013-11-22 12:21 +0100
Re: changing iframe source via php richard <noreply@example.com> - 2013-11-22 08:08 -0500
Re: changing iframe source via php Tim Streater <timstreater@greenbee.net> - 2013-11-22 13:33 +0000
Re: changing iframe source via php richard <noreply@example.com> - 2013-11-22 08:48 -0500
Re: changing iframe source via php Arno Welzel <usenet@arnowelzel.de> - 2013-11-22 16:30 +0100
Re: changing iframe source via php Arno Welzel <usenet@arnowelzel.de> - 2013-11-22 16:27 +0100
Re: changing iframe source via php Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-11-22 20:19 +0000
Re: changing iframe source via php Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-11-22 20:21 +0000
Re: changing iframe source via php Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-23 01:43 +0000
Re: changing iframe source via php Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-23 19:30 +0000
Re: changing iframe source via php Scott Johnson <noonehome@chalupasworld.com> - 2013-11-23 18:51 -0800
csiph-web