View Single Post
Old 10-05-2012, 06:29 PM   PM User | #39
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Ok so I ceated the page which the user clicks to reset thier password. I have this php block at the very top of my script:

PHP Code:
<?php

global $id;
global 
$uniq;

$id $_GET['id'];
$uniq $_GET['unique'];

echo 
$id."<br />";
echo 
$uniq;

?>
This echo's out the correct values. I have stored them in global variables because I want to be able to use them within the action script of the new password form. When I try to echo out the variables inside the action form, no values are showing. Which is leading to my error of 0 rows being affected...

I used globals in the past and they worked ok. I also used them in the same way so not sure what could be wrong...

Do you know what it could be?

Regards,

LC.
LearningCoder is offline   Reply With Quote