/    Sign up×
Community /Pin to ProfileBookmark

$_GET, $_POST, and $_SESSION vars within "class"

So, I am currently using a free php calendar script, downloadable here:

[url]http://www.cascade.org.uk/software/php/calendar/[/url]

I am in the process of modifying it such that it can be used in a scheduling tool I have devised. However, I am having trouble with using GET, POST, and SESSION variables within it.

Specifically, the user defines a variable on a form on page one, which calls page 2 with a get method. I then call the $_GET variable from within the class (so that the dates in the calendar that are linked to page 3 also pass the GET variable from page 1).

It don’t work – the get vars, when called in the script, has no value, atlthough in other parts of the page, before and after the calendar script it works fine…

Gah.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsJan 26.2005 — are you trying to access the $_GET vaiables after they were set in a previous url, which will not be possible, the $_GET variable is filled with data based on the current requested uri
×

Success!

Help @Daot_Lagorille 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.20,
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,
)...