ASP Problem Please try to help me???

Results 1 to 2 of 2

Thread: ASP Problem Please try to help me???

  1. #1
    Yair Guest

    Default ASP Problem Please try to help me???

    Hi there !<BR>I am posting a part of my code:<BR>My problem is that whan i submit the variable C allways<BR>Initiate to ZERO and thats not my intrest<BR>I whant to ADD the previous value of C to the next value when some one push the submit button.<BR>Can you please tell me how can i do this???<BR>Thanks in Advanced.<BR><BR>&#060;body&#062;<BR>&#060;%<BR>di m c <BR><BR>a =int(Request.QueryString("a"))<BR>b =int(Request.QueryString("b"))<BR><BR>c=int(a+b)<B R><BR>%&#062;<BR><BR>&#060;form method="get" action="a.asp" name=""&#062;<BR> &#060;p&#062;<BR> &#060;input type="radio" name="a" value="1"&#062;<BR> <BR> <BR> &#060;/p&#062; <BR> &#060;p&#062; <BR> &#060;input type="radio" name="b" value="1"&#062;<BR> &#060;/p&#062; <BR> &#060;p&#062; <BR> &#060;input type="submit" name="Submit" value="Submit"&#062;<BR> &#060;/p&#062;<BR>&#060;/body&#062;

  2. #2
    omc Guest

    Default RE: ASP Problem Please try to help me???

    You could send the variable c to the next page in a hidden form field like this:<BR><BR>&#060;input type="hidden" name="hidC" value="&#060;%= c %&#062;"&#062;<BR><BR>Then on the next page you get it<BR>c=request.form("hidC")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •