• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 122
  • Last Modified:

how to call



Hello I have this

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<% usr_ageLow = DateDiff("yyyy",Request.QueryString("usr_ageq"), NOW()) %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

Hw can I call the value to be shown on my page, I have tried the following to no avail.


<body>
<p><%= Request("usr_ageLow") %></p>
<p>&nbsp;</p>
<p><%= Request.QueryString("usr_ageLow") %></p>
<p>&nbsp;</p>
<p><%= Request.Form("usr_ageLow") %></p>
</body>


the value been passed to the page is

usr_ageq=36


I was hoping that the 36 would be subtracted from todays date thus I could compare it wth a dob in my database.

but i cannot show a value on my page to begin with . what have i done wrong.

regards

kenny






0
thatelvis
Asked:
thatelvis
  • 3
  • 2
1 Solution
 
Ryan ChongCommented:
>>Hw can I call the value to be shown on my page, I have tried the following to no avail.

I guess should be as:

<%= Request("usr_ageq") %>

not:

<%= Request("usr_ageLow") %>

as well as the other 2..

??
0
 
thatelvisAuthor Commented:
<%=usr_ageLow%>  is what I needed.

Thanks for your help.


this issue is now closed.


regards

Kenny


0
 
smaccariCommented:
usr_ageLow is now a variable in your page, not an element of the QueryString (nor Form post).

So, simply do:

<%=usr_ageLow%>
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
thatelvisAuthor Commented:
yea i wasnt aware of that until I check else where.

thanks again
0
 
Ryan ChongCommented:
LOL, didn't read this question properly...
0
 
thatelvisAuthor Commented:
lol


thanks lol
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now