L
Licass
this is the code:
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="24889" --><form
METHOD="POST" action="verpaga_prereserva.asp" name="form1">
<p>
<!--webbot bot="PurpleText" preview="Defina as propriedades deste
formulário de forma a enviar entradas do utilizador para a página
adequada." --></p>
<table BORDER="0">
<tr>
<td><b>n_prereserva:</b></td>
<td>
<input TYPE="TEXT" NAME="n_prereserva" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"n_prereserva")%>"></td>
</tr>
<tr>
<td><b>data:</b></td>
<td>
<input TYPE="TEXT" NAME="data" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"data")%>"></td>
</tr>
<tr>
<td><b>expira:</b></td>
<td>
<input TYPE="TEXT" NAME="expira" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"expira")%>"></td>
</tr>
<tr>
<td><b>id:</b></td>
<td>
<input TYPE="TEXT" NAME="id" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"id")%>"></td>
</tr>
<tr>
<td><b>cod_casa:</b></td>
<td>
<input TYPE="TEXT" NAME="cod_casa" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"cod_casa")%>"></td>
</tr>
<tr>
<td><b>nm_mes:</b></td>
<td>
<input TYPE="TEXT" NAME="nm_mes" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"nm_mes")%>"></td>
</tr>
<tr>
<td><b>n_semana:</b></td>
<td>
<input TYPE="TEXT" NAME="n_semana" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"n_semana")%>"></td>
</tr>
<tr>
<td><b>inicio:</b></td>
<td>
<input TYPE="TEXT" NAME="inicio" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"inicio")%>"></td>
</tr>
<tr>
<td><b>fim:</b></td>
<td>
<input TYPE="TEXT" NAME="fim" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"fim")%>"></td>
</tr>
<tr>
<td><b>preco:</b></td>
<td>
<input TYPE="TEXT" NAME="preco" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"preco")%>"></td>
</tr>
<tr>
<td><b>quinzena:</b></td>
<td>
<input TYPE="TEXT" NAME="quinzena" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"quinzena")%>"></td>
</tr>
<tr>
<td><b>Nome:</b></td>
<td>
<input TYPE="TEXT" NAME="Nome" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"Nome")%>"></td>
</tr>
<tr>
<td><b>morada:</b></td>
<td>
<input TYPE="TEXT" NAME="morada" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"morada")%>"></td>
</tr>
<tr>
<td><b>email:</b></td>
<td>
<input TYPE="TEXT" NAME="email" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"email")%>"></td>
</tr>
<tr>
<td><b>telefone:</b></td>
<td>
<input TYPE="TEXT" NAME="telefone" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"telefone")%>"></td>
</tr>
<tr>
<td><b>perguntas:</b></td>
<td>
<input TYPE="TEXT" NAME="perguntas" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"perguntas")%>"></td>
</tr>
<tr>
<td><b>sugestões:</b></td>
<td>
<input TYPE="TEXT" NAME="sugestões" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"sugestões")%>"></td>
</tr>
<tr>
<td><b>Comentários:</b></td>
<td>
<input TYPE="TEXT" NAME="Comentários" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"Comentários")%>"></td>
</tr>
<tr>
<td><b>situacao:</b></td>
<td>
<input TYPE="TEXT" NAME="situacao" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"situacao")%>"></td>
</tr>
<tr>
<td><b>forma_pagamento:</b></td>
<td>
<input TYPE="TEXT" NAME="forma_pagamento" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"forma_pagamento")%>"></td>
</tr>
<tr>
<td><b>valor:</b></td>
<td>
<input TYPE="TEXT" NAME="valor" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"valor")%>"></td>
</tr>
<tr>
<td COLSPAN="2"><br>
<BR>
<input TYPE="submit" NAME="fp_submit" value="fazer pagamento/reserva">
</td>
</tr>
</table>
<p> </p>
</form>
And i just want to disable the fp_submit button when situacao ="reservada" .
i've tried this for example
<%
dim fname
fname=Request.form("situacao")
If fname="reservada" Then
fp_submit.disabled=true
End If
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="24889" --><form
METHOD="POST" action="verpaga_prereserva.asp" name="form1">
<p>
<!--webbot bot="PurpleText" preview="Defina as propriedades deste
formulário de forma a enviar entradas do utilizador para a página
adequada." --></p>
<table BORDER="0">
<tr>
<td><b>n_prereserva:</b></td>
<td>
<input TYPE="TEXT" NAME="n_prereserva" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"n_prereserva")%>"></td>
</tr>
<tr>
<td><b>data:</b></td>
<td>
<input TYPE="TEXT" NAME="data" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"data")%>"></td>
</tr>
<tr>
<td><b>expira:</b></td>
<td>
<input TYPE="TEXT" NAME="expira" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"expira")%>"></td>
</tr>
<tr>
<td><b>id:</b></td>
<td>
<input TYPE="TEXT" NAME="id" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"id")%>"></td>
</tr>
<tr>
<td><b>cod_casa:</b></td>
<td>
<input TYPE="TEXT" NAME="cod_casa" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"cod_casa")%>"></td>
</tr>
<tr>
<td><b>nm_mes:</b></td>
<td>
<input TYPE="TEXT" NAME="nm_mes" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"nm_mes")%>"></td>
</tr>
<tr>
<td><b>n_semana:</b></td>
<td>
<input TYPE="TEXT" NAME="n_semana" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"n_semana")%>"></td>
</tr>
<tr>
<td><b>inicio:</b></td>
<td>
<input TYPE="TEXT" NAME="inicio" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"inicio")%>"></td>
</tr>
<tr>
<td><b>fim:</b></td>
<td>
<input TYPE="TEXT" NAME="fim" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"fim")%>"></td>
</tr>
<tr>
<td><b>preco:</b></td>
<td>
<input TYPE="TEXT" NAME="preco" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"preco")%>"></td>
</tr>
<tr>
<td><b>quinzena:</b></td>
<td>
<input TYPE="TEXT" NAME="quinzena" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"quinzena")%>"></td>
</tr>
<tr>
<td><b>Nome:</b></td>
<td>
<input TYPE="TEXT" NAME="Nome" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"Nome")%>"></td>
</tr>
<tr>
<td><b>morada:</b></td>
<td>
<input TYPE="TEXT" NAME="morada" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"morada")%>"></td>
</tr>
<tr>
<td><b>email:</b></td>
<td>
<input TYPE="TEXT" NAME="email" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"email")%>"></td>
</tr>
<tr>
<td><b>telefone:</b></td>
<td>
<input TYPE="TEXT" NAME="telefone" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"telefone")%>"></td>
</tr>
<tr>
<td><b>perguntas:</b></td>
<td>
<input TYPE="TEXT" NAME="perguntas" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"perguntas")%>"></td>
</tr>
<tr>
<td><b>sugestões:</b></td>
<td>
<input TYPE="TEXT" NAME="sugestões" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"sugestões")%>"></td>
</tr>
<tr>
<td><b>Comentários:</b></td>
<td>
<input TYPE="TEXT" NAME="Comentários" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"Comentários")%>"></td>
</tr>
<tr>
<td><b>situacao:</b></td>
<td>
<input TYPE="TEXT" NAME="situacao" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"situacao")%>"></td>
</tr>
<tr>
<td><b>forma_pagamento:</b></td>
<td>
<input TYPE="TEXT" NAME="forma_pagamento" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"forma_pagamento")%>"></td>
</tr>
<tr>
<td><b>valor:</b></td>
<td>
<input TYPE="TEXT" NAME="valor" SIZE="40"
VALUE="<%=FP_FieldHTML(fp_rs,"valor")%>"></td>
</tr>
<tr>
<td COLSPAN="2"><br>
<BR>
<input TYPE="submit" NAME="fp_submit" value="fazer pagamento/reserva">
</td>
</tr>
</table>
<p> </p>
</form>
And i just want to disable the fp_submit button when situacao ="reservada" .
i've tried this for example
<%
dim fname
fname=Request.form("situacao")
If fname="reservada" Then
fp_submit.disabled=true
End If
%>