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

Código:
 'Re-run the query to read in the updated recordset from the database for the poll results
		rsSavePollVotes.Requery
		
					
	 'rsSavePollVotes.MoveNext
	 'Loop
		
	
		'Reset Server Objects 
		Set adoCon = Nothing
		rsSavePollVotes.Close
		Set rsSavePollVotes = Nothing 
	 	
		'If multiple votes for a poll are not allowed then save a cookie on the users system
		If blnMultipleVotes = False Then 
			'Write a cookie with the Poll ID number so the user cannot keep voting on this poll		
			'Write the cookie with the name Poll containing the value PollID
			Response.Cookies("Poll")("PollID") = intPollIDNum
			
			'Set the expiry date for 1 year
			Response.Cookies("Poll").Expires = Now() + 360
		End If

	End If
	
End Function

%>
fin

Y de paso otra pregunta, con esta variable:
Código:
			textolibre = Request.Form("textolibre")	
			rsSavePollVotes("textolibre") =  textolibre
Lo que hago es recoger lo que se ha escrito en un campo de texto y escribirlo en la base de datos, el problema es que cuando otro usuario escribe otra opinión la anterior opinión se borra y se escribe esta nueva, la pregunta ¿Como puedo mantener todas las opiniones en un mismo campo?
Un saludo