Welcome to Geeklog, Anonymous Friday, January 10 2025 @ 04:03 am EST

Geeklog Forums

Static Pages' PHP Parameters


Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
When creating Static Pages with PHP enabled, are there any parameters I can use while inside PHP code?

If so, please write here the full list of parameters (a parameter for the static page's id, one for its title name, etc.).

Thanks!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can pass any parameters you want. Just pass them in the URL and pick them up via the $_GET array.

bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Shouldn't it be by $_SERVER['QUERY_STRING']?
How do I use the parameters with $_GET?

And there's only so much parameters I can send in a query string. Besides, I send a query string/flashvars to a flash file, which in turn sends parameters into a static page...

It looks like:
Text Formatted Code
param name="flashvars" value="url=http://mydomain/staticpages/index.php/some_subject?parameter_for_static_page&name=text for the button"


 

So I can deliver one parameter, but as soon as I use the character "&", Flash will "kidnap" whatever's following it to itself.

But again, even if I only worked in HTML, it'd still be nice to use built in parameters like I can in the templates.

So are there no built in parameters at all for Static Pages?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can't mix "rewritten" URLs with additional parameters, so you'd have to use the old form staticpages/index.php?page=whatever&this=42&that=abc

bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
It doesn't matter as I can't use "&". The Flash takes everything that starts with "&" as ITS parameters.
 Quote

All times are EST. The time is now 04:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content