PDA

View Full Version : Need variable value


parallon
08-25-2006, 06:52 PM
Hello all. I have the following section of code which populates two frames, and What i am trying to do is to pass a variable (highlighted in RED) in the URL, but I am having problems. Can anybody see anything wrong with the following code?

<frameset rows="55%,*" FRAMEBORDER="0" BORDER="0" FRAMESPACING="0">
<frame NAME="main" SCROLLING="auto" SRC="Availability.asp?EmpId2="&EmpId2 TITLE="Frame Body">
<frame NAME="foot" SCROLLING="auto" SRC="Wolist.asp?First=Y" TITLE="Frame Foot">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>

I can hardcode the value with no problem, but I think something is wrong with my syntax for the variable.

Thanks in advance,

Parallon

Wylie
08-26-2006, 10:35 PM
A code that you showed is HTML, but "&EmpId2" the variable is not HTML, therefore "&EmpId2" is no more variable in that line. For fixing this problem, you have to write that whole line in script.

degsy
08-31-2006, 02:35 PM
SRC="Availability.asp?EmpId2="&EmpId2
That is the wrong syntax


SRC="Availability.asp?EmpId2=<%=EmpId2%>"

parallon
08-31-2006, 03:16 PM
Worked like a charm.

Thanks a lot...

Parallon