Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Adding count to a page

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,2796
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Adding count to a page
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Adding count to a page - 4/25/2005 4:55:17 AM   
  rwimer618

 

Posts: 1
Score: 0
Joined: 4/25/2005
From: USA
Status: offline
I am writing a asp program that starts on my page then verifies at another page on another website then comes back to my page. I am sending information to the other site user_id,user_password and User_Account. Then this information comes back to my page adding verified or notverified and also my strings. One of the problems I am having is when I go to a second verification my fields that I filled with the return strings are not submitting on the second time around. I also need to a count to this but I am not sure where to begin. Please help anyone.

Below is the code:

<%
strKey=Request.QueryString("response")
strUser = Request.QueryString("user_id")
strPaswword = Request.QueryString("user_password")
strUserAccount = Request.QueryString("User_Account")
strAmount = Request.QueryString("user_amt")

%>

<div align="center">
<table width="505" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="84" rowspan="3" valign="top">
<td width="327" height="37" valign="middle"><font size="3" face="Verdana, Tahoma">
<strong>Anywhere Recharge </strong>
<%
if strKey = "verified" then
Response.Redirect "comersus_addItem.asp?idProduct=5&idOptions=6&quantity=1"
Else
If count = 1 Then count = count + 1
Response.Write %><BR><BR><font size="2" face="Verdana, Tahoma">You must register in <a href="http://208.51.238.4:88/registerme.aspx">My Account</a><BR>to get your <b>User ID and Password</b> or<BR>call customer service at 800-348-5322<BR><BR>Please make sure you retype all information correctly.</font>
</font></td>
<td width="94" rowspan="3" valign="top"><!--DWLayoutEmptyCell-->  </td>
</tr>
<form action="http://65.188.99.26/comersus6f/store/awValidate.asp?user_id=<%=Request.Form("user_id")%>&user_password=<%=Request.Form("user_password")%>&User_Account=<%=Request.Form("User_Account")%>" method="post" name="form1">
<input type="hidden" name="count" value=1>
<tr>

<td height="165" align="left" valign="bottom"> <br>
<font size="2" face="Verdana, Tahoma">User Id:</font>                              
<input name="user_id" type="text" id="user_id" value="<%= strUser%>" size="16" maxlength="16">
<br>
<br>
<font size="2" face="Verdana, Tahoma"><Label>Password:</Label></font>                          
<input name="user_password" type="password" id="user_password" value="<%= strPassword%>" size="16" maxlength="16">
<br>
<br>
<font size="2" face="Verdana, Tahoma"><label>Account Number:(Pin #)</label></font>   
<input name="User_Account" type="text" value="<%= strUserAccount%>" id="User_Account" size="15" maxlength="12">
<br>
<br>
<font size="2" face="Verdana, Tahoma"><label>Recharge Amount:</label></font>              
<select name="user_amt">
<option value="<%= strAmount%>"><%= strAmount%></option>
</select>
<br>
<br>
<br>
</tr>
<tr>
<td height="31" align="right" valign="bottom">
<input type="submit" name="Submit" value="Verify">
</tr>
<tr>
<td height="11" valign="top">
<td>

<td></td>
</tr>
</form>
<%End If%>
</table>
<!--#include file="footer.asp"-->

_____________________________

Robert M. Wimer
 
 
Post #: 1
 
 Re: Adding count to a page - 5/11/2005 7:53:40 AM   
  T1TAN23

 

Posts: 11
Score: 0
Joined: 5/11/2005
From: USA
Status: offline
User a session varialbe to run your count of submits that will help you maintain state

Session("Count") = Session("Count") + 1

Not sure why things are not submitting the second time around though. I don't think i have the complete picture yet

(in reply to rwimer618)
 
 
Post #: 2
 
 Re: Adding count to a page - 5/11/2005 8:37:48 PM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
The session will not work cause he is using 2 different sites, and sessions are different from each site. So to do the count use a database field.
And to make sure that the values are viewed in the second verification,
remove the QueryString and the Form from all Request:


      


and make it look like that:


      

this way will make sure to view the data

Hope this Helps

Best Regards
Firas S Assaad

(in reply to rwimer618)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Adding count to a page Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts