Jump to content

Help with doing php page, e.g index.php?action=products


ChrisMartino

Recommended Posts

Hello there, I'm kinda new to PHP, Now i was wondering if you could help me, I'm wanting to do something so when somebody clicks a product on the page products it dose "gameservers.php?product=samp" how would i code this so when they clicked that it showed the prices for "samp", and say they clicked autorider it did "gameservers.php?product=autorider" and showed the prices for them?, Thanks in advance.

 

Chris

(Newb @ PHP)

you mean in a form or a link?

 

link would be like...

<a href="gameservers.php?product=autorider">AutoRider</a>

 

and then on whatever page that uses, make sure it is a php page... i'm not sure what you are doing though, but maybe gameservers checks if $_GET['product'] isset and then if so it will display the product.php code which will in turn generate results based on what $_GET['product'] is set to?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.