Jump to content

var in url


GRooVeZ

Recommended Posts

hi

 

i have this code, wich deletes u from a list

if succeeded it gives u a succes message, and forwards u to a page

 

like this

 

		$mes="<b>succes<br />";
	return success($mes,'./ffamatches.php');

 

this is working, now what i want is to put a var inthere

 

 

		$mes="<b>succes<br />";
	return success($mes,'./ffamatches.php?id=$matchid');

 

but thats not working, how do i do this?

 

this is the complete page

 

<?php

include("./includes/egl_inc.php");
$secure = new secure();
$secure->secureGlobals();
page_protect();

if($_SESSION['user']) 
{

	if (isset ($_GET['match'])) 
		{ 

			$matchid = (int)$_GET['match'];

		}elseif($match) 
		{ 

			$matchid = (int)$match;

		}

$playersidcheck = $_COOKIE['tid'];		

$deleteQuery = "DELETE FROM ffa_signups WHERE matchid='$matchid' and playerid='$playersidcheck'"; 

$deleteResult = mysql_query($deleteQuery) or die(mysql_error());

	$mes="<b>succes<br />";
	return success($mes,'./ffamatches.php');


}else{

header('Location: ./login.php');

}


include("$config");
?>

 

Thanks in advance!

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.