Hello Every one,

I want just to send my data to the server with php when the submit button 
is clicked.
 my form is like this:

client.component.html
<form class="form-horizontal" #personneForm="ngForm">
      <div class="form-group">
        <label for="nom" class="col-2 col-form-label">Nom</label>
        <div class="col-10">
          <input type="text" class="form-control" id="nom" name="nom" 
                [(ngModel)]="model.nom" #nom="ngModel">
        </div>

      </div>
      <div class="form-group">
        <label for="prenom" class="col-2 col-form-label">prenom</label>
        <div class="col-10">
          <input type="text" class="form-control" id="prenom" name="prenom" 
required [(ngModel)]="model.prenom" #prenom="ngModel">
        </div>
      </div>
      <button type="submit" [disabled]="!personneForm.form.valid" class="btn 
btn-primary pull-right">
       Envoyer
      </button>
    </form>

when the button is clicked i will call the insertClient.php file to insert 
the data in my database

Thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to