Jump to content

[SOLVED] Using the apatche query strings?


gergy008

Recommended Posts

I'm after making a play.php page, And the page will display a game depending on the ?gme=whatever tag at the end.

 

It's just so people can't grab the URL to the game and steal them. You have to unlock games to play them thats all.

 

Can anyone show me or give me a good link on how to use them?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/170512-solved-using-the-apatche-query-strings/
Share on other sites

Please look at :

http://www.tizag.com/phpT/postget.php

 

It may be worth going through the whole lot.

Only a few hours worth of learning and will REALLLLY help with php.

 

in short though.

play.php?blaa=1234

 

In php you would do:

<?php

$blaa = $_GET['blaa']; // gets the data from ?blaa=

echo $blaa;

( result would be 1234, ie: the var now has 1234 in it )

you will need to figure out what will happen now though.

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.