In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php