Welcome Guest, Not a member yet? Register   Sign In
How to use decode function in view web page?
#1

[eluser]jiahui[/eluser]
I would like use decode password function in view web page,
I put my code like this

edit.php

Code:
<?php $this->load->library('encrypt'); ?>
<input id="password_confirm" name="password_confirm" type="password" maxlength="50" value="<?php $row->encrypt->decode(password) ?>" />

Got error:
Quote:Severity: Notice

Message: Undefined property: stdClass::$encrypt

Filename: accounts/edit.php

Line Number: 52
#2

[eluser]Flemming[/eluser]
I think you would need to do:

Code:
value="<?php echo $this->encrypt->decode($row->password)?>"
#3

[eluser]jiahui[/eluser]
Thank you




Theme © iAndrew 2016 - Forum software by © MyBB