PHP Help

Hitman
Soldato
Joined
25 Feb 2004
Posts
2,837
Hey,

Trying to make something in PHP, but stuck on this one thing. I'll try to explain:

I have a form with 2 variables. For the sake of this post, I'll name them $user and $pass. After the form has been submitted (by submitting the data to itself), something like this is ran:

$returnVals = DoThis( $user, $pass );

"DoThis" is a function, and for the sake of this post, does this:

function DoThis( $user, $pass )
{
include( 'a_special_file.php' );
$newfile = new NewLa( );
$newfile->DoThat( $user, $pass );
}


This passes the variables $user and $pass to the new file, a_special_file.php. Here, something like this can be done:

function DoThat( $user, $pass )
{
if ($user = '1')
return 0;
}


What I need to do is pass the return value from a_special_file to the one where it all originated (where the form / "DoThis" function is).

How could I go about doing this, as it doesn't seem to be working?

I hope this is all understandable, got a feeling it probably isn't :(

Cheers in advanced
 
Back
Top Bottom