i am having some probme to solved an issue
there would be select with some values,
when user will select a value, it will check against a database to see if the selected value is greated then the filed value.
if yes, then it will say, out of stock
now, i know you can do this via pure php, but i want a short cut way without modify too much my existing code.( due to time issue)
i am tinking is there any way, i can do this via java script ??
if its see the value is bigger then database filed, it will say , outof stock , thats all
here is the link if you want to see what i meant
echo "<td><select name='amountBox' select id='sample' onChange='output(this)' >";
echo "<option>" . $i . "</option>";
echo "<td><INPUT TYPE='image' name='submit' src='images.jpg' onclick='this.form.submit()' border='0' ><input type='hidden' name='submit' value='Add to basket'> </td>";