Ver Mensaje Individual
  #10 (permalink)  
Antiguo 11/09/2002, 11:36
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

Código:
 
'If a vote has been cast then record the vote
	If NOT strPollVote = "" Then
	
		'Call the Save Poll Votes Function (This must be called before any HTML is written as it sets a Cookie)
		blnSaveVote =  SavePollVotes(strPollVote, intPollIDNum)
	
	End If

'Else this is a previous poll to display so show get the poll id number to display
Else

	'Read in the Poll ID Number of the previous poll to display
	intPollIDNum = CInt(Request.QueryString("PollID"))

End If
Email = Request ("email")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-7759-1">
<title>Encuestas Copysan</title>
<!--#include file="style.asp"-->
<%=Email%>

</head>
<body bgcolor="#F0F0F0" vlink="#48576C" link="#48576C" alink="#000000">
<%
      


	'Display the HTML for the weekly poll	
	
	'If the user has already voted once before in this poll vote then display the approriate message
	If blnSaveVote = False Then
		'If the user has already voted then display an appriorate message
		Response.Write vbCrLf & "<div align=""center""><span class=""text"">Lamentable, Ud ya ha votado en esta encuesta.</span></div><br>"
	End If
 %>
	  <%If blnSaveVote = False Then%>
	  <%else%>
<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td align="center" valign="bottom" height="29">La 
      encuesta ha sido enviada correstamente, <br>
      muchas gracias por su participación</td>
  </tr>
</table>
<%end if%>
</body>
</html>
<%

'Sub function to save the users Poll Vote Choice

Private Function SavePollVotes(ByRef strPollVoteChoice, ByRef intPollIDNum)

	'Dimension variables
	Dim rsSavePollVotes 		'Database Recordset Variable
	Dim intVoteChoiceCount		'Holds the number of votes for the choice selected
	Dim intVotedIDNo		'Holds the number of any previous polls the user has voted in
	
	
	'Intialise variables
	SavePollVotes = True
sigue