Re: ldap_add() troubles
| From: | David Robley | Date: | Sat, 31 May 2003 06:38:00 +0000 |
| Subject: | Re: ldap_add() troubles | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149636@lists.php.net to get a copy of this message | ||
In article <1054222386.3ed6283277b0a@mail.gfi.be>, cecile@gfi.be says...
> Hi list,
>
> i'm very newbie in PHP so sorry for this simple question but i havn't found any
> differences between my "code" and example code on a lot of website that i visited.
>
> I use PHP-4.3.1, OpenLDAP 2.1.19, BerkeleyDB-4.1.25 and Apache-2.0.45.
>
> My problem is that my variables are not taken into account.
>
> This is the code :
> ------------------
>
> <?php
>
> print "<center><form method='post'> Username : <br>
> <input type='text' name='user'
> size='20'></form>\n";
> print "<center><form method='post'> Firstname : <br>
> <input type='text' name='firstname'
> size='20'></form>\n";
> print "<center><form method='post'> Lastname : <br>
> <input type='text' name='lastname'
> size='20'></form>\n";
> print "<center><form method='post'> Telephon Number : <br>
> <input type='text' name='tel'
> size='20'></form>\n";
> print "<center><form method='post'> Mobile Number : <br>
> <input type='text' name='mobile'
> size='20'></form>\n";
> print "<center><form method='post'> Address : <br>
> <textarea name='street' rows='3'
> cols='20'></textarea></form>\n";
> print "<center><form method='post'><br>
> <input type='submit' value='Valider'
> name='goldap'></form>\n";
You only need one <FORM> here, not one for each value. When you click
Valider, it only sends the values in that FORM element and of course the
only variable there is goldap :-(
So remove all <FORM> except the first, and remove all </FORM> except the
last and see how you go.
--
Quod subigo farinam