Hi there!!
I want to “encrypt” my input password before submit, where and how can I do it?
Thanks!!
Hi there!!
I want to “encrypt” my input password before submit, where and how can I do it?
Thanks!!
Hi
It is possible by using event handler ‘onBeforeUpdate’ of dataprocessor.
Thanks for your answer Darya,
but how can i do it?
PHP have the function sha1(); but i cant use it because the var is in javascript ¿?
formProfesor.php
//Form
var newMaterialForm = popupWindow.attachForm();
newMaterialForm.enableLiveValidation(true);
newMaterialForm.loadStruct("recursos/formProfesor.xml");
var dpfs = new dataProcessor("recursos/formProfesor.php?bdcol=<?php echo $_GET['bdcol'];?>");
dpfs.init(newMaterialForm);
newMaterialForm.attachEvent("onButtonClick", function(name, command){
dpfs.sendData();
});
newMaterialForm.attachEvent("onBeforeSave", function (id, values){
->encrypt<-
return true;
});
formProfesor.xml
[code]
<?xml version="1.0"?><item type="button" xcommand="save" value="Guardar" offsetTop="15"/>
[/code]