[eluser]mcair[/eluser]
Code:
<form method="post" action="auth/Login">
<input name="btnLostPassword" type="button" value="Lost Password" class="btnlogin"/>
<input name="btnRegister" type="button" value="Register" class="btnlogin"/>
<label for="UserName">Username:</label>
<input name="UserName" type="text" maxlength="10" style="width: 70px;"/>
<label for="Password">Password:</label>
<input name="Password" type="password" value="" maxlength="10" class="inputpassword" style="width: 70px;"/>
<input name="RememberMe" type="checkbox" value="1" class="inputcheckbox"/>
<label for="RememberMe">Remember Me?</label>
<input name="btnLogin" type="submit" value="Go" class="btnlogin"/>
</form>
I am logging the variables captured in this form, using the following code:
Code:
f_logarray('auth/login',$_POST);
Code:
function f_getarraystring($array)
{
$temp = '';
if (isset($array))
foreach($array as $key => $value)
$temp = $temp.$key.'=>'.$value.',';
return $temp;
}
function f_logmessage($source='Unknown',$message)
{
log_message('debug',$source.'(IP:'.$_SERVER['REMOTE_ADDR'].'):'.$message);
}
function f_logarray($source='Unknown',$array)
{
f_logmessage($source,f_getarraystring($array));
}
The form variables are logged with values sometimes, othertimes not. If I refresh the page and re-enter values in the form and submit it, the values do not always appear using the functions I have presentelisted. This stuff should be a piece of cake, yet I'm tearing my hair out trying to make sense of why the form variable values do not always get passed into the script. Using PHP Designer on Vista with WAMP, any tips on getting the XDebug to work would be much appreciated.