simbad003
Programmer
- Nov 19, 2010
- 3
Hello am getting a big problem with the following codes.
while{
//looping fetching data from php
and putting them in a textbox
<input type="hidden" name="p[]"value="<?php echo $fetech['from php']?>"> //everything it works
<input type="button" name="send" onclick="doing();">
}
here comes the trouble i dnt know how to make it works to send the values to the other textboxe.
<script language="javascript">
function doing(){
var b= document.getElementsByName("p[]");
//sending the value to a textbox
//it works only if the "i" is being inputed manually
//example b[0] or b[1]
//below is the textbox
document.getElementById("al").value=b.value;
}
</script>
while{
//looping fetching data from php
and putting them in a textbox
<input type="hidden" name="p[]"value="<?php echo $fetech['from php']?>"> //everything it works
<input type="button" name="send" onclick="doing();">
}
here comes the trouble i dnt know how to make it works to send the values to the other textboxe.
<script language="javascript">
function doing(){
var b= document.getElementsByName("p[]");
//sending the value to a textbox
//it works only if the "i" is being inputed manually
//example b[0] or b[1]
//below is the textbox
document.getElementById("al").value=b.value;
}
</script>