Quoting David Robley <[EMAIL PROTECTED]>:

> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> >[...]
> > 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.
> 
>[...]

Hi David,

the "problem" is resolved.
I did not know that the variables was lost when the form was closed.  
It is logical... :-) 

Thanks a lot for your help in this basic case... 
Thanks also to Mark.

Cheers,

Cecile.




-------------------------------------------------
Mail sent through GFI Mailserver1.0
info: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to