本文介绍了从表格患者中选择值后,如何从表格测试中将值分配给文本框,以Php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! < script type =text / javascript> getdata() { var test = document.getElementById。 selectedIndex('give'); var name =rani; var test = document.getElementById.value('amount'); vartst =姓名 } < / script> < / head> < body> 参考医生:< select name =refdoc> < option value =rani> rani< / option> < option value =tushar> tushar< / option> < option value =mahesh> mahesh< / option> < option value =mangesh> mangesh< / option> < /选择> 参考测试:require_once'conn.php'; require_once'function1.php'; ?> echo< select id ='give'>; combo($ con,从测试中选择名称) ; echo< / select>; ?> 金额:<输入type =textname =amountid =amount> %:< input type =textname =percentid =percent > 已支付:< input type =textname =paidid =paid> 余额:< input type =textname =balanceid =balance> cutoftotal:< input type =textname =cotid =cot < input type =submitname =insertvalue =insert> < input type =submitname =updatevalue =update> < input type =submitname =删除值=删除> < / body> < / html> > 解决方案 <script type="text/javascript">getdata(){var test = document.getElementById.selectedIndex('give');var name="rani";var test = document.getElementById.value('amount');vartst= name}</script></head><body>REf doctor:<select name="refdoc"> <option value="rani">rani</option> <option value="tushar">tushar</option> <option value="mahesh">mahesh</option> <option value="mangesh">mangesh</option></select>Reference Test:require_once'conn.php';require_once'function1.php';?> echo "<select id='give' >"; combo($con,"select name from test"); echo "</select>"; ?>amount: <input type="text" name="amount" id="amount" >percent: <input type="text" name="percent" id="percent">paid: <input type="text" name="paid" id="paid" >balance: <input type="text" name="balance" id="balance">cutoftotal:<input type="text" name="cot" id="cot"<input type="submit" name="insert" value="insert"><input type="submit" name="update" value="update"><input type="submit" name="delete" value="delete"></body></html> 解决方案 这篇关于从表格患者中选择值后,如何从表格测试中将值分配给文本框,以Php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-16 04:40