Hi all,
I have a PHP webpage using some JS and I'd like to use my PHP functions dynamically. What I mean is that in my page there is a button, a list and some fields. When the user enters a name and click, the name is added to the list and informations corresponding to this user are shown in the fields (I'm using some LDAP queries that I build and works correctly).
Now when my page load I have no problem executing the queries to return the informations on the logged user, but once the page is shown, I don't know where/how to do it. I tried putting the code in the Onclick event of the button but i never worked. The process function is a JS that add the name to the list.
<input type="Button" value="Add" onclick="<?$infoSlectUsr = readUserSelecInfoFromLDAP(document.formUsrMod.txtUserCode.value);?>; Process()"/></p>
Also,to create my LDAP query I need the value of a field, which I only know how to get in JS. I'm still new to PHP so if anyone can help me out with this It would be really nice. Thanks.
Cheers, Frank