PHP Classes

URL parameter

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Locating addresses on...  >  All threads  >  URL parameter  >  (Un) Subscribe thread alerts  
Subject:URL parameter
Summary:How to I include parameters ?
Messages:2
Author:Rob Verboom
Date:2007-05-06 19:24:55
Update:2007-05-06 19:36:51
 

  1. URL parameter   Reply   Report abuse  
Picture of Rob Verboom Rob Verboom - 2007-05-06 19:24:55
Hi,

I use a page parcer that includes content in my master template to create each page.

I use parameters in the url for this (i.e. ?id=21 ).
The url displayed in the button is correct (?id=3), but when the button is pressed, the id variable is not found ($_GET["id"]) and my default page is loaded.

What am I missing?

Thanks in advance


  2. Re: URL parameter   Reply   Report abuse  
Picture of Rob Verboom Rob Verboom - 2007-05-06 19:36:51 - In reply to message 1 from Rob Verboom
Ok, I found the answer.

$form->METHOD="POST"; (not GET).

This will 'free' the url for normal use.