not passing my variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

not passing my variable

Post by jarow »

I have a session variable that looks like this.

Code: Select all

<?php
session_start();
header("Cache-control: private");
$_SESSION['user'] = $_REQUEST['user'];
$user=$_REQUEST['user'];
?>
When I set this variable as follows I get a response that says it can´t find the _update_confirm.php. In other words it is not reading the $user variable I have put in front of it.

Code: Select all

<?php
$updateGoTo = $user."_update_confirm.php?update=true&user=".$user;
?>
Any ideas of what I am doing wrong?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Is all of this in one page?

Have you checked what's in $_REQUEST?

Mac
Post Reply