Page 1 of 1

URL question - passing variables in url

Posted: Sun Mar 01, 2009 11:54 am
by holy_knight
I wish to add my small database application in cms made simple and i do it using user defined tag. For every page i made user tag and made pages in content part. Everything works good except when i must put another variable to url, for example for editing camp, something like

Code: Select all

index.php?page=edit-camp"&id_camp=4
than page is shown up but i can't see value of variable id_camp. How I could pass to url another variable? pls help if its posible.

Re: URL question - passing variables in url

Posted: Sun Mar 01, 2009 1:49 pm
by viebig
can you paste {get_template_vars} here ?

Re: URL question - passing variables in url

Posted: Sun Mar 01, 2009 1:54 pm
by holy_knight
ofcourse. here it is

Code: Select all

SCRIPT_NAME = /alijansa/index.php
app_name = CMS
sitename = Alijansa
lang =
encoding = UTF-8
gCms = Object
cgsimple = Object
ccuser = Object
feu_smarty = Object
content_id = 55
page = edit-camp
page_id = edit-camp
page_name = edit-camp
page_alias = edit-camp
position = 00009
friendly_position = 9
customcontent = 1
customcontent_loggedin =
customcontent_ip = 127.0.0.1
customcontent_loginname = nobody
customcontent_dayzeros = 01
customcontent_day3text = Sun
customcontent_day = 1
customcontent_weekday = Sunday
customcontent_dayordsuffix = st
customcontent_dayofweek = 0
customcontent_dayofyear = 59
customcontent_weeknum = 09
customcontent_monthfulltext = March
customcontent_monthnumzeros = 03
customcontent_monthshorttext = Mar
customcontent_monthnum = 3
customcontent_monthnumdays = 31
customcontent_leapyear = 0
customcontent_4digityear = 2009
customcontent_2digityear = 09
customcontent_lowerampm = pm
customcontent_upperampm = PM
custoncontent_inettime = 622
customcontent_12hour = 2
customcontent_24hour = 14
customcontent_12hourzeros = 02
customcontent_24hourzeros = 14
customcontent_minutes = 56
customcontent_seconds = 53
customcontent_timezone = CET
customcontent_date = Sun, 01 Mar 2009 14:56:53 +0100
customcontent_epochseconds = 1235915813
search_actionid = cntnt01
hogan = onfocus="if(this.value==this.defaultValue) this.value='';" onblur="if(this.value=='') this.value=this.defaultValue;"
searchtext = Enter Search...
startform =

label = Search
searchprompt = Search
submittext = Submit
endform =

menuparams = Array
count = 7
nodelist = Array
node = Object
prevpage = <
firstpage = <<
nextpage = >
lastpage = >>
pagenumber = 1
pagecount = 1
oftext = of
pagetext = Page
itemcount = 1
items = Array
category_label = Category:
author_label = Posted by:
param_number = 3
param_detailpage = news
param_module = News
entry = Object
target =
href = http://localhost/alijansa/index.php?mact=Printing,m5,printpage,1&m5showbutton=1&m5script=1&m5returnid=55&page=55
linktext = Print this page
imgsrc = modules/Printing/printbutton.gif
imgclass =
linkimage = Print this page
class = noprint
image = Print this page 

Re: URL question - passing variables in url

Posted: Sun Mar 01, 2009 2:02 pm
by holy_knight
Its all ok. I found error. I write $id_camp=$REQUEST['id_camp'] instead $id_camp=$_REQUEST['id_camp']
stupid me

Thank you anyway for help

Re: URL question - passing variables in url

Posted: Sun Mar 01, 2009 7:54 pm
by viebig
ok. add solved to subject

regards