pentolanmenteng
0
Newbie Poster
Recommended Answers
Jump to Postwhat is $number? an Array?
if it is php file then <input type....> should come within echo
Jump to Postoption 1
<?php for($j=0;$j<count($number);$j++) { ?> <input type='text' size='1' name='inputno<?php echo $j;?>' id='inputno<?php echo $j;?>' onchange="check_input(this.value, '<?php echo $j;?>' );"> <?php } ?>
option 2
<?php for($j=0;$j<count($number);$j++) { echo "<input type='text' size='1' name='inputno{$j}' id='inputno{$j}' onchange=\"check_input(this.value, '{$j}')\">"; } ?>
All 6 Replies
rajarajan2017
pentolanmenteng
0
Newbie Poster
urtrivedi
276
Nearly a Posting Virtuoso
pentolanmenteng
0
Newbie Poster
rajarajan2017
urtrivedi
276
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.