[SOLVED] - How to send and get the parameter by URL?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
juliano.ma
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 12:00 pm

[SOLVED] - How to send and get the parameter by URL?

Post by juliano.ma »

Hi friends,

A simple question,

see:

http://localhost/cmsmadesimple/index.ph ... ct&id=2532

How I get the ID come from the URL?

in my definition tag I put this:

$sql = mysql_query("SELECT * FROM table WHERE id = '". $_GET['id'] ."'");

but dont working...

any suggestion?

this my viewproducts page:
 Select an Product: [Select an Product] {databaseconex}{queryselectproduct}
Last edited by juliano.ma on Thu Apr 24, 2008 3:06 pm, edited 1 time in total.
juliano.ma
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 12:00 pm

Re: How get the ID come from the URL?

Post by juliano.ma »

Anyone?

i need this a lot.
juliano.ma
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 12:00 pm

Re: How get the ID come from the URL?

Post by juliano.ma »

Please friends,

I need only know how to send and get parameter by url.

for example:

cmsmadesimple/index.php?page=product&id=$id

how to send that $id correctly by the url?

then how to get that $id correctly by the url?

if i use $_GET['id'] on the product page (defined in my tags)  dont work.
Last edited by juliano.ma on Thu Apr 24, 2008 11:47 am, edited 1 time in total.
juliano.ma
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 12:00 pm

Re: [SOLVED] - How to send and get the parameter by URL?

Post by juliano.ma »

Now I understand.

one should never use the variable id, that is reserved.

I replace by valueid then work nice.
Post Reply

Return to “CMSMS Core”