Ii'm fetching names from the table and storing it in the option_vals array and in the names
are like below
product 1*10's xyz
product 1/10 abc
product 0.5nos hah
i get error fot this is it because f the characters in the names of the product
i'm creating this selct box from ajax
[PHP]select_opt = new Array();
select_opt[0]="--Select--";
<?
for($i=1;$i<=co unt($option_val s);$i++){
?>
select_opt[<?= $i ?>] = '<?= $option_vals[$i-1] ?>';
<?
}
$option_vals[]="";
?>[/PHP]
are like below
product 1*10's xyz
product 1/10 abc
product 0.5nos hah
i get error fot this is it because f the characters in the names of the product
i'm creating this selct box from ajax
[PHP]select_opt = new Array();
select_opt[0]="--Select--";
<?
for($i=1;$i<=co unt($option_val s);$i++){
?>
select_opt[<?= $i ?>] = '<?= $option_vals[$i-1] ?>';
<?
}
$option_vals[]="";
?>[/PHP]
Comment