Hello,
So far I have created a html form which contains some php code hence why I have given it the extension .php. I have also connected my php file, the one that does the actual processing to active Directory.
I want to extract data from the Active Directory and publish that data in the form. I think I know how to extract the data however I don't have a clue as to how to put the data into a web form and send it to the user. What I am trying to avoid is messing up the form because it contains mre then basic HTML.
For instance my form has a field called the code for whch is given below:
<div>
<table>
<tr>
<td><label for="firstname">Firstname:</label>
<input type="text" readonly="yes" name="firstname" id="firstname" size="25"/>
</td></tr><table></div>
I know that data can be extracted from AD and be put into an array.
For example if the array containing the extracted data is called $information and the value of the firstname is in the key [0], to populate the firstname field I would do the following.
<div>
<table>
<tr>
<td><label for="firstname">Firstname:</label>
<input type="text" readonly="yes" name=$information[0] id="firstname" size="25"/>
</td></tr><table></div>
Is that the correct way of doing it?
I apologise for my earler post not bein clear.