Mohana R

Mohana R

  • NA
  • 36
  • 5.5k

how to pass textbox value to multiple formaction in view

Dec 22 2017 7:19 AM
in my view
 
7 textboxes( name,fnamee,lname,dept,addres,phno.courses)
2 formaction (save,update)
when save action perform need to save all the details in main table but while updating i need dept and address value
 
view code
 
<input type="submit" formaction="save" formmethod="save" name="save" value="save"/>
<label>NAME</label> <input type="text" id="name" name="Name" /><br /><br />
<label>fNAME</label> <input type="text" name="fname" /><br /><br />
<label>lNAME</label> <input type="text" name="Lname" /><br /><br />
<label>dept</label> <input type="text" name="dept" /><br /><br />
<label>addres</label> <input type="text" name="addres" /><br /><br />
<input type="submit" formaction="update" formmethod="save" name="save" value="save"/>
<label>phno</label> <input type="text" name="phno" /><br /><br />
<label>courses</label> <input type="text" name="courses" /><br /><br />
 
while updating the values of phno and courses i need the dept and address to update but its not passing the values because i am using two form action

Answers (7)