php and ldap_mod_replace()??
Posted: Wed Jan 15, 2003 3:02 am
hi
sorry for my english!!!!
i have to make an interface PHP which allows has user to
be connected with login and password, posts these attributes to him
and gives him the possibility of modifying some of it. all be well
until recording of the modifs .i have to test more stricks but nothing
has to make my code:
$attrib["telephoneNumber"][$indice]=$new_tel;
echo "tel".$attrib["telephoneNumber"][$indice];
$r=ldap_mod_replace($id_ldap,$dn_entree,$attrib);
if (!$r)
{
$msg_no_modif="<center><b>modification echoue<br><br>";
$msg_no_modif.="<a class=lien href='javascript:history.back()||document.referrer'>";
$msg_no_modif.="retour</a></b></center>";
ldap_close($id_ldap);
include ("HAUTPG.php");
print ($msg_no_modif);
include ("BASPG.php");
exit();
}
else
{
include ("HAUTPG.php");
echo "modif reussi";
include ("BASPG.php");
}
if you have a idee
i have to make an interface PHP which allows has user to
be connected with login and password, posts these attributes to him
and gives him the possibility of modifying some of it. all be well
until recording of the modifs .i have to test more stricks but nothing
has to make my code:
$attrib["telephoneNumber"][$indice]=$new_tel;
echo "tel".$attrib["telephoneNumber"][$indice];
$r=ldap_mod_replace($id_ldap,$dn_entree,$attrib);
if (!$r)
{
$msg_no_modif="<center><b>modification echoue<br><br>";
$msg_no_modif.="<a class=lien href='javascript:history.back()||document.referrer'>";
$msg_no_modif.="retour</a></b></center>";
ldap_close($id_ldap);
include ("HAUTPG.php");
print ($msg_no_modif);
include ("BASPG.php");
exit();
}
else
{
include ("HAUTPG.php");
echo "modif reussi";
include ("BASPG.php");
}
if you have a idee