title: why In get method i am getting empty fields when posting request in react?
body: <p>I am posting the data from response API, fields like <code>connectionname</code>, <code>sid</code> and so on when I am checking in the get request I am not getting the data in the fields it is showing empty fields. Can anyone help me in this I am struck in this from couple of days.    </p>
  
  <pre><code>render() {
  
       return (
       &lt;div className="body_scroll"&gt; 
       &lt;section&gt;
        &lt;div className="container-fluid"&gt;
          &lt;div className="row"&gt;
            &lt;div className="col-md-6"&gt;
              &lt;h3 className="row_title"&gt;Add New Data Connection&lt;/h3&gt;
            &lt;/div&gt;
            &lt;div className="col-md-4 col-md-offset-2 "&gt;
              &lt;div className="top_row_right text-right"&gt;
              &lt;form onSubmit={this.submit}&gt;
                &lt;button className="btn btn-primary" type= "submit"&gt;Save&lt;/button&gt;
                &lt;button className="btn btn-primary"&gt; Close&lt;/button&gt;
                &lt;/form&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
  
      &lt;section className="content_block"&gt;
        &lt;div className="container-fluid"&gt;
          &lt;div className="row"&gt;
            &lt;div className="col-md-12"&gt;
              &lt;div className="connection_tab_block"&gt;
                &lt;ul className="nav nav-tabs"&gt;
                  &lt;li className="active"&gt;&lt;a href="#con_setting" data-toggle="tab"&gt; Connection Setting&lt;/a&gt;&lt;/li&gt;
  
                &lt;/ul&gt;
                &lt;div id="connectionTabContent" className="tab-content"&gt;
                  &lt;div className="tab-pane fade active in" id="con_setting"&gt;
                    &lt;div className="row clearfix"&gt;
  
  
                     &lt;form onSubmit={this.submit} &gt;
  
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor className="col-md-4 control-label"&gt;Data Connection Name&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
  
  
                            &lt;input className="form-control box_ip" id placeholder="Data Connection Name" type="text"   valChange={this.dataConnectionNameChange} val={this.state.dataConnectionName}/&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor className="col-md-4 control-label"&gt;Description&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id placeholder="Description" type="text" 
  
                             valChange={this.descriptionChange} val={this.state.description} /&gt;
                      &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt;Type&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;select className="form-control box_ip" &gt;&lt;option&gt; Oracle &lt;/option&gt;&lt;/select&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix"&gt;
                          &lt;label htmlFor="inputEmail" className="col-md-4 control-label"&gt;Connection Method&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;select className="form-control box_ip"&gt;
                            &lt;option&gt; JDBC &lt;/option&gt;
                            &lt;option&gt; ODBC &lt;/option&gt;
  
                            &lt;/select&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt;Database Host&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id=" " placeholder="Database Host" type="text" 
  
                            valChange={this.databaseHostChange} val={this.state.databaseHost} /&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt;Database Port&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id=" " placeholder="Database Port" type="text" 
  
                            valChange={this.databasePortChange} val={this.state.databasePort} /&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt;SID&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id=" " placeholder="SID" type="text" 
  
                             valChange={this.dataConnectionSidChange} val={this.state.dataConnectionSid} /&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt; Driver&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id=" " placeholder=" Driver" type="text" 
  
  
                            valChange={this.jdbcDriverChange} val={this.state.jdbcDriver}  /&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt;Username&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id=" " placeholder="Username" type="text" 
  
  
                            valChange={this.dataConnectionUsernameChange} val={this.state.dataConnectionUsername} /&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className="col-md-6"&gt;
                        &lt;div className="form-group clearfix is-empty"&gt;
                          &lt;label htmlFor=" " className="col-md-4 control-label"&gt;Password&lt;/label&gt;                        
                          &lt;div className="col-md-8"&gt;
                            &lt;input className="form-control box_ip" id=" " placeholder="Password" type="text" 
  
  
                            valChange={this.dataConnectionPasswordChange} val={this.state.dataConnectionPassword} /&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;/form&gt;                            
                    &lt;/div&gt;  
                  &lt;/div&gt;
  
                &lt;/div&gt; 
              &lt;/div&gt;           
            &lt;/div&gt;
          &lt;/div&gt;        
        &lt;/div&gt;   
      &lt;/section&gt;
  
  
    &lt;/div&gt;
  
  
      );
  }
  </code></pre>