FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

PROBLEM: The $_GET variable

Feed 3 posts, 2 voices

Avatar
10 posts

Hello,

i searched the whole forum, read all posts for the same problem. Its all unclear to me. So made this topic.

I am need to have some $_GET[‘code’] variables in my website.
it needs to be like: http://mysite.com/pagename/getsomevars?code=4949201&pl=2jf3j4jdms2mf4

It is going to be used as an API.
When i put this:

<?php
// lees het steam id uit de url, verplaats hem uit de url in post(ivm MODT)
$id = $_GET['code'];
if(isset($id)){
	echo "Sid: ".$id;
}
echo "<br><br>";
$pl = $_GET['pl'];
if(isset($pl){
	echo "PL: ".$pl;
}
?>

now when i try it in my frog CMS, i keep on the same page. It doesnt show an error and it doesnt chance at all…

I have REWRITE_URL “true” inside my config.php
i have the _.htaccess renamed to .htaccess.

Please can someone make it clear to everyone so it doesnt need to be asked all times.;)
thanks

 
Avatar
541 posts

depend on the server configuration but sometime the use of the & instead of the ? in the url, fix the problem

 
Avatar
10 posts

how can i do that ?

 
Avatar
541 posts

what you mean … you don’t have access to the code generated for the link ?