Missy <
misbah...@gmail.com> wrote on 08 apr 2015 in
microsoft.public.scripting.vbscript:
> I am writing to seek some guide, as I would like to know, how I can make
> the visibility for the following input tag false (<input type="submit"
> class="button1" value="Next" />),under the following condition:
>
> <% If request("m") = 3 and strEmailAddress <> "" Then %>
>
> the page loads, showing the form, however I am little unsure, how can I
> make the submit button invisible, when the first if condition is met.
>
<% If request("m") = 3 And strEmailAddress <> "" Then %>
<input type='submit' class='button1' value='Next'>
<% End If %>
or
<input type='submit'
<%
If request("m") = 3 And strEmailAddress <> "" Then
Response.write " visibility='hidden' "
End If
%>
class='button1' value='Next'>
or
<%
bool = request("m") = 3 And strEmailAddress <> ""
If bool Then
temp = "display='none'"
Else
temp = ""
End If
%>
<input type='submit' <%=temp%> class='button1' value='Next'>
===========================
btw, NEVER use plain request("m"),
[you would not know from which source the response comes]
but specify the request source:
request.querysting("m")
or
request.form("m")
or
request.cookies("m")
or
... whatever
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)