Log in

View Full Version : Changing a field in a database using a drop down menu..



billy124
01-01-2008, 11:08 PM
response.write "<TD><select name=""qunt"" style=""width: 40px; height: 21px"">" & vbcrlf & _
"<option selected=""selected"" value=""1"">1</option>" & vbcrlf & _
"<option value=""2"">2</option>" & vbcrlf & _
"<option value=""3"">3</option>" & vbcrlf & _
"<option value=""4"">4</option>" & vbcrlf & _
"<option value=""5"">5</option>" & vbcrlf & _
"</select>" & "</TD>" & vbcrlf

How can i make this code change a table field in a database..

Its a drop down menu with numbers..
every time some one changes the number i want it to automatically update the database field..

shnawer
01-21-2008, 12:35 AM
Hi!

For this you need to use ajax not only asp!
which OnChange will run a ajax function and that would update your records on change state!

Please visit www.w3schools.com for ajax

Shnawer
www.bluemobiles.com