Ver Mensaje Individual
  #9 (permalink)  
Antiguo 11/09/2002, 11:34
haven
 
Fecha de Ingreso: febrero-2002
Ubicación: Navarra
Mensajes: 701
Antigüedad: 23 años, 3 meses
Puntos: 2
Re: recoger un valor en diferentes variables

Vale pues no sale, si pongo OR entonces solo me graba en primer Id y si le pongo And entonces me sale un error interno del servidor
Haber voy a poner el código que estoy utilizando, que no es mio, que lo he cogido de un ejemplo, lo que pasa es que yo estoy aumentando los registros. El código es de un ejemplo para hacer encuestas o votaciones, según se mire, el código es de Web Wiz Guide ASP Weekly Poll v3.04.
Este es el código que estoy utilizando:
Código:
<% Option Explicit %>
<% Response.Buffer = True %>
<!--#include file="common.inc" -->
<%
'Dimension variables
Dim rsWeeklyPoll 		'Database Recordset Variable
Dim strPollVote			'Holds the poll vote choice from the user
Dim strPollQuestion 		'Holds the poll question
Dim intPollIDNum		'Holds the poll ID Number
Dim intToatalPollVotes		'Holds the total number of votes cast
Dim dblPollVotePercentage	'Holds the percentage of the poll votes choice
Dim intSelectionLoopCounter	'Loop counter to display the poll selections
Dim intReadInVotesLoopCounter	'Loop counter to read in the number of votes cast
Dim blnSaveVote			'Boolean to set to false if the user has already voted
Dim Email
Dim NPregunta
Dim textolibre, queIDStr, queIDarr, sd, sd2, ansID, i, x, NumeroID, id_no

'Initialise variables
intPollIDNum = 0
intToatalPollVotes = 0
blnSaveVote = True
queIDStr = trim(request.form("id_no"))
queIDStr = Split(queIDStr, ",")

	
'If this is not a previous poll to be displayed then read in the details from the form and save the choice
If Request.QueryString("PollID") = "" Then

	'Read in the Poll ID Number
	intPollIDNum = CInt(Request.Form("id"))
	
	'Read in the Poll Vote user choice
	strPollVote = Request.Form("PollVote")
Sigue