Home | Advertising Info11 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Wednesday, January 15, 2025  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: Problem reading one db and writing to ano A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
shadowspell
Newbie
Newbie
Avatar

Joined: May/04/2004
Location: United States
Online Status: Offline
Info: 13
Added: July/02/2004 at 9:49am | IP Logged Quote shadowspell

Hello Hypa,

Yes, when the form is populated by the db table, tbl_peernominees, we will have a list of peer names with a radio button to the left of each name. To the far right of each name is the 'reason' this person was nominated. So, you have:

(0) < radio button :: Peer Name ::  Reason peer was nominated
(0) < radio button :: Peer Name ::  Reason this peer was nominated
(0) < radio button :: Peer Name ::  Reason this one was nominated......

[submit button]

So, one votes for a peer by clicking the radio button next to their name and then clicking the submit button. This is a vote - and this vote will populate a new table, tbl_peervotes. Problem is, I can capture that peer name in the table, but not the 'reason' for the peer voted for. I capture every bloody 'reason' for every peer nominated separated by commas. So when you look at the db table for peers voted for, you get this::

id         &nbs p;     date         &n bsp;          peer         &n bsp;         &n bsp;      reason
------------------------------------------------------------ ------------------------------
1           ;    07/01/04        &nbs p;  Joe Maze         &n bsp;      reason for Joe Maze, reason for Chris Blue, reason for Suzy Que, reason for Jay Mack, reason for Quicy Jones, reason for Bobby Post.........

I'm trying to figure out how I can caputure the one 'reason' that goes with the peer nominated which is fed from the tbl_peernominees table.

Thanks for your efforts,

Chris 



__________________
~`^%
In Vino Veritas
Back to Top View shadowspell's Profile Search for other info by shadowspell
 
Hypa
Newbie
Newbie
Avatar

Joined: June/29/2004
Location: United States
Online Status: Offline
Info: 6
Added: July/02/2004 at 7:13pm | IP Logged Quote Hypa

Ok here is my first thought without going to deeply into the logic. In order for you to pass the information along you need to send it with the value of the radio button selected.

 

In this section (yours)

<input type = "radio" name="fullname" value="<%= RS("firstname") &" "& RS("lastname") %>">

Change it to something like this. (Mine)

<input type = "radio" name="fullname" value="<%= RS("firstname") &" "& RS("lastname") & "|" & RS("REASON") %>">

 

Im example you would add string manipulation to find the "|" (more) symbol and cut that section off then you would have your reason string.  then take the | off and the remaining part of the string is your name.  There are many other ways I'm sure to do this but I think I would give this a shot.  Let me know if this makes any sense.  Another thought would be to implement a counter and concatinate the number with the name of reason and match it with the index number of the radio item... Ok I hope this helps.

 



__________________
Never Mess with a geek and his toys!
Back to Top View Hypa's Profile Search for other info by Hypa
 
shadowspell
Newbie
Newbie
Avatar

Joined: May/04/2004
Location: United States
Online Status: Offline
Info: 13
Added: July/06/2004 at 9:01am | IP Logged Quote shadowspell

Hypa,

Just wanted to get back to you before too many days pass. I just got back to work and I will give this a try.
Thanks for your advise and imparting some of your knowledge.

Chris



__________________
~`^%
In Vino Veritas
Back to Top View shadowspell's Profile Search for other info by shadowspell
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

<< Prev Page of 2
  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com