TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 653
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 854
  • Total: 855
  • @rjen

php block

Started by osquitar, February 08, 2006, 10:42:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

osquitar

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!


eldacar

The button generator is in an iframe.

osquitar

Anyway, Is possible reload a php block with new parameters (variables)?

IchBin

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.

osquitar

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.


This website is proudly hosted on Crocweb Cloud Website Hosting.