If Acrobat is not installed then
"Acrobat is NOT installed"
appears correctly.
If Acrobat is installed then
"Acrobat V5 + is installed"
appears correctly.
However, the setting of the variables to go with these conditions does not work.
If Acrobat IS installed i want the ASP variable inst_pdf="yes".
If Acrobat is NOT installed i want the ASP variable inst_pdf="no".
Then i want to use the value of this variable in my ASP page:
<form name="form" method="post" action="reg_confirm.asp" onSubmit="return checkme();">
<div align="center">
<b>Picco User Agreement</b>
</div>
<%
'inst_pdf="no"
response.write "Installed PDF = " & inst_pdf & "<br>"
%>
<table align="center">
<tr>
<% if inst_pdf = "yes" then %>
<td align="center">
Click the Print button to Print the Picco Terms & Conditions
</td>
<% else %>
<td align="center"> </td>
<% end if %>
</tr>
<tr><td> </td></tr>
<tr>
<% if inst_pdf = "yes" then %>
<td align="center"><iframe src="../PICCOCLICKWRAP15.pdf" width="600" height="600" scrolling="yes" name="content" class="body"></iframe></td>
<% end if %>
<% if inst_pdf = "no" then %>
<td align="center"><iframe src="get_acrobat.asp" width="600" height="500" scrolling="yes" name="content" class="body"></iframe></td>
<% end if %>
</tr>
<br>
<% if inst_pdf = "yes" then %>
<tr><td align="center">
<input type="checkbox" name="agree" id="agree" value="agree_terms">
Agree to Terms & Conditions<br>
</td></tr>
<tr><td align="center">
<input type="submit" name="accept" id="accept" value="Accept" onMouseOver="style.cursor='hand'"> &nbs p;
<input type="button" name="reject" id="reject" value="Reject" onMouseOver="style.cursor='hand'" onClick="return areyousure();">
</td>
</tr>
<% else %>
<tr>
<td align="center">
<input type="button" name="back" id="back" value="Back" onMouseOver="style.cursor='hand'" onClick="history.back()">
</td>
</tr>
<% end if %>
</table>
<input type="hidden" name="forename" id="forename" value="<%=forename%>">
<input type="hidden" name="surname" id="surname" value="<%=surname%>">
<input type="hidden" name="comp_name" id="comp_name" value="<%=comp_name%>">
<input type="hidden" name="position" id="position" value="<%=position%>">
<input type="hidden" name="email" id="email" value="<%=email%>">
<input type="hidden" name="agencyid" id="agencyid" value="<%=agency_id%>">
<input type="hidden" name="agentid" id="agentid" value="<%=agent_id%>">
<input type="hidden" name="username" id="username" value="<%=user_name%>">
<input type="hidden" name="password" id="password" value="<%=pass_word%>">
</form>
What am i doing wrong?
www.crmpicco.co.uk
www.milklemonadechocolate.uk.tt