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

Home » Imported messages » comp.lang.php » changing iframe source via php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: changing iframe source via php [message #183836 is a reply to message #183835] Fri, 22 November 2013 03:24 Go to previous messageGo to previous message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma:
Member
On Thu, 21 Nov 2013 20:23:35 -0500, richard <noreply(at)example(dot)com>
wrote:

> On Thu, 21 Nov 2013 16:32:05 -0800, Richard Yates wrote:
>
>> On Thu, 21 Nov 2013 17:23:00 -0500, richard <noreply(at)example(dot)com>
>> 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??
>>
>> You should post your attempts because it is not very clear what you
>> are trying to do. If you are getting 'value' in a query string and
>> want to use that to get the associated page in the iframe, then it may
>> be that you want this:
>>
>> <iframe name="home" id="aframe" src="page<?php echo
>> $_GET['value'];?>">
>
> kind of tried that approach. did not work.

"Kind of" rarely does work. Post your code.
[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
Previous Topic: PEAR is dead?
Next Topic: PHP functions to convert markup efficiently
Goto Forum:
  

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

Current Time: Sat Nov 23 07:08:13 GMT 2024

Total time taken to generate the page: 0.03932 seconds