Results 1 to 2 of 2

Thread: Changing a field in a database using a drop down menu..

  1. #1
    Join Date
    Oct 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Changing a field in a database using a drop down menu..

    Code:
    		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..

  2. #2
    Join Date
    Jan 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •