TinyPortal
Development => Feedback => Topic started by: osquitar on February 08, 2006, 10:42:02 PM
I don't know if this is the right place to talk about php... Anyway I go...
Think about the button generator which is in the left side of this site. When you click on "render" something happens. I think the php code in the block run again with the parameters choosen by the user. I need to do the same thing but I don't know how. I see the page does not load again but just the block. Mr. Bloc, please!!! you are the author. Tell me how can I do it!
The button generator is in an iframe.
Anyway, Is possible reload a php block with new parameters (variables)?
I'm no php guru, but PHP by nature is dynamic. You can tell it to do many things. Even differently each time. I don't know how, but I know it's possible.
Yes, I had to use a php article, not a php block. Besides you must declare the variable to pass as global. That's all. I spent all day in this topic.
for example:
http://www.domain_name.com/index.php?page=2&optionMenu=3
In the article:
global $optionMenu;
I hope this will be useful for someone.