PHP Can't get value textbox -
i have table.
<tableid="mytable" > <tr class='row'> <td>name</td> <td><input type="textbox" name="txtname" /></td> </tr> </table>
i used jquery add together new row
var = $(".row").html(); $("#mytable > tbody:first").append("<tr class='row'>"+a+"</tr>");
this code php
$_request['txtname'];
i can't values textbox when create new rows. please help me
assuming html right on server, reason can't values new rows have same variable name. create name of input array.
<table id="mytable" > <tr class='row'> <td>name</td> <td><input type="textbox" name="txtname[]"></td> </tr> </table>
now names in array $_request['txtname']
also, don't utilize $_request. utilize $_post, $_get, $_cookie, etc. there security reasons.
php textbox get
No comments:
Post a Comment