OK I have a form for people to change their bio information. It works fine. I ran into a problem when I tried to have the changes mailed to me.
What I'm doing is creating a variable called $changes, I send the original value and the new value of the variable being changed whether it be name or email or whatever. I have a variable named $c for the category being changed.
I call the function as so
$changes = $changes.check_change( $field, $oldvar, $newvar);
My function is as follows
function check_change($c, $oldvar, $newvar)
{
if ($oldvar != $newvar)
{
echo "\n'$c' was changed from '$oldvar' to '$newvar'.";
}
}
The echo part works great but the variable is not contatenating the way I thought it would.
I have to run the function for about 10 variables and I want the end $changes variable to have all the changes made. Any ideas what my problem is? Thanks to anyone looking at this. The help is appreciated.
Function Question
Moderator: General Moderators
Function Question
Last edited by smoky989 on Sun Jan 26, 2003 11:51 pm, edited 1 time in total.
In the words of Chris Farley...
In the words of Chris Farley, "Son of a..." Thanks man, that fixed my problem.