If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Separating data from single field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-07, 13:51
AM5786 AM5786 is offline
Registered User
 
Join Date: Dec 2005
Posts: 4
Separating data from single field

Hello all,
I have a website where Employers post their jobs on that job posting page we have a field "Days", where we store "Monday" thru "Sunday" and "Flex" for flexible as just one field separated by commas. Now there is an intra site where that posted job is reviewd before making it available. I need help for Intra site where when displaying Days, instead of displaying them as one field I have to display it like Monday [checkbox], Tuesday [checkbox] and so on.

1.
<table>
<tr>
<td>Days:&nbsp;</td>
<td><input name="DAYS" value ="<%=RS("DAYS")%>"</td>
</tr>
</table>
---------------
2.
<table>
<tr>
<td>Days:&nbsp;
<INPUT type="checkbox" name="DAYS" value="Monday">Monday
<INPUT type="checkbox" name="DAYS" value="Tuesday">Tuesday
<INPUT type="checkbox" name="DAYS" value="Wednesday">Wednesday
<INPUT type="checkbox" name="DAYS" value="Thursday">Thursday
<INPUT type="checkbox" name="DAYS" value="Friday">Friday
<INPUT type="checkbox" name="DAYS" value="Saturday">Saturday
<INPUT type="checkbox" name="DAYS" value="Sunday">Sunday
<INPUT type="checkbox" name="DAYS" value="flex">Flex
</td>
</tr>
</table>


1. displays everything in the field together.
2. Like if company posted a job for Weekend only then only Saturday and Sunday should be checked.
I hope I have explained it properly.
Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On