Page 1 of 1

php embedded to a page problem

Posted: Thu Mar 02, 2006 9:30 pm
by Eli
I am new to cmsms  I want to embedded a php code in a cms page. I do the
following.
1. I define a new "user-define tag" with my php code (without php quote)
2. In my page I write {my_tag}

my php code contain a call to itself via a html form
(the user can decide the ORDER field of one table).

http://www.mysite/index.php?page=48&order=1
the problem is the variable such as order are never pass to my php code, is there is away to do what I want? I am open to any suggestion.
Eli

Re: php embedded to a page problem

Posted: Thu Mar 02, 2006 9:35 pm
by jelle
Where are you looking for your variable? You know that since php 4.0 php does not translate arguments in the url to php variables anymore?
You should be able to find them in $_GET['order'] I think.

Re: php embedded to a page problem

Posted: Fri Mar 03, 2006 2:15 pm
by eli
thanks its working!!!