View Single Post
 
Old November 27th, 2003, 09:37 PM
g_tan g_tan is offline
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to g_tan
Default how to get the value of a listbox in asp

how do i get the value of Mon into a asp/vb variable day..?


my current code doesnt seem to work
<select id="day" name="day">
        <Option value="Mon">Monday</Option>
        <Option value="Tue">Tuesday</Option>
        <Option value="Wed">Wednesday</Option>
        <Option value="Thu">Thursday</Option>
        <Option value="Fri">Friday</Option>
        <Option value="Sat">Saturday</Option>
        </select>

        <select id="time" name="time">
        <option value="0800">8 am</option>
        <option value="0900">9 am</option>
        <option value="1000">10 am</option>
        <option value="1100">11 am</option>
        <option value="1200">12 pm</option>
        <option value="1300">1 pm</option>
        <option value="1400">2 pm</option>
        <option value="1500">3 pm</option>
        <option value="1600">4 pm</option>
        <option value="1700">5 pm</option>
        </select>



        <p>Staff Name:
        <input name="name" size="10"/>
        <br/></p>

<%
        Dim day,time,name
        name=request.querystring("name")
        day=request.querystring("dayvalue")
        time=request.querystring("timevalue")