/    Sign up×
Community /Pin to ProfileBookmark

Passing page with variable as param to another variable

Being a newbie I am not sure about how to word the problem but here it is.

I have a 3-col css layout for my website. Menu on the right, content on the center page and calendar and some other things on the right. The calendar on the right side of the page consists of dates with events are linked. Now, when the page renders at first the url looks something like

[code=html]http://www.mydomain.com/index.php?page=welcome.html[/code]

then clicking on one of the dates from the calendar, i want the url to change to

[code=html]http://www.mydomain.com/index.php?page=php/calevents.php?view=day&date=20050520[/code]

so that the info about that specific event is displayed in the center of the page.

However, in my case I just see a blank page in the center. The problem being two “?” in the url, i think. [U]$page[/U] is assigned the value [U]php/calevents.php?view=day&date=20050520[/U]. Note there is a “?” in the value assigned.

So I am thinking that if the variables used in calevents.php are evaluated first then everything is assigned to $page then the page will display correctly. However, I am stumped as to how can i achieve that. Hopefully this makes sense.

thanks,
– Maulesh

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMay 24.2005 — I think you'd be much better off just sending simple varname=value pairs, then in the called script have it parse them out and build the desired url out of those pieces.
×

Success!

Help @maulesh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...