Jump to content

Problem with variables


hmsg

Recommended Posts

I have a file "produtos.php" that i want to make a link to another file "cprodutos.php" passing a variable with a number.

This is the code that i have in produtos.php:

print("<p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;<a href=\"cprodutos.php?idcat=$campo_id\">$campo_c</a>");


I think this part is correct, because the link is made correctly, it gives me this: [a href=\"http://www.hmsg.net/bijuteria/cprodutos.php?idcat=2\" target=\"_blank\"]http://www.hmsg.net/bijuteria/cprodutos.php?idcat=2[/a]

the 2 is the number that i want to pass.

But in the cprodutos.php i don't know how to get the variable? is there any function to get the idact=2?

What code should i put in the cprodutos.php?



Whith the best regards

Hugo Gomes
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.