URL question - passing variables in url

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
holy_knight
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 14, 2007 1:06 pm

URL question - passing variables in url

Post 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.
Last edited by holy_knight on Sun Mar 01, 2009 1:22 pm, edited 1 time in total.
viebig

Re: URL question - passing variables in url

Post by viebig »

can you paste {get_template_vars} here ?
holy_knight
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 14, 2007 1:06 pm

Re: URL question - passing variables in url

Post 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 
Last edited by holy_knight on Sun Mar 01, 2009 1:57 pm, edited 1 time in total.
holy_knight
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 14, 2007 1:06 pm

Re: URL question - passing variables in url

Post 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
viebig

Re: URL question - passing variables in url

Post by viebig »

ok. add solved to subject

regards
Post Reply

Return to “Developers Discussion”