Originariamente inviato da pitman
allora, il testo viene scritto dagli utenti. Io ho impostato una pagina con un modulo e una pagina dove visualizzano i loro post. Il tutto passa per un database che è quello che riesci a creare in automatico con frontpage.
questo è il codice del modulo:
nick name <!--webbot bot="Validation"
b-value-required="TRUE" --><input type="text" name="nick" size="20"></font></p>
<p align="center"><font face="Verdana"
color="#429940">oggetto
<!--webbot bot="Validation"
b-value-required="TRUE" --><input type="text" name="oggetto" size="20"></font></p>
<p align="center"><font face="Verdana"
color="#429940">scrivi <!--webbot bot="Validation"
b-value-required="TRUE" --><textarea rows="8" name="scivi" cols="26"></textarea></font></p>
<p align="center"><font face="Verdana"
color="#429940"><input type="submit" value="Invia" name="B1"
style="color: #FFFFFF; font-family: Verdana; font-weight: bold; background-color: #429940">
<input type="reset" value="Cancella" name="B2"
style="color: #FFFFFF; font-family: Verdana; font-weight: bold; background-color: #429940">
mentre questo il codice dell'area dei risultati:
<!--webbot bot="DatabaseRegionStart"
s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
s-columntypes="3,202,202,202,203,202,202,202,135,202 ,202,202"
s-dataconnection="ar.pv" b-tableformat="FALSE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="FALSE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="FALSE" b-listseparator="FALSE"
i-listformat="0" b-makeform="FALSE" s-recordsource="Risultati"
s-displaycolumns="data,sport,oggetto_notizia,notizia ,inviata" s-criteria
s-order="[Data_e_ora] -"
s-sql="SELECT * FROM Risultati ORDER BY Data_e_ora DESC" b-procedure="FALSE"
clientside suggestedext="asp" s-defaultfields
s-norecordsfound="Nessun record restituito." i-maxrecords="256" i-groupsize="1"
botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="BODY"
preview="<table border=0 width="100%"><tr><td bgcolor="#FFFF00"><font color="#000000">Inizio dell'area risultati database.</font></td></tr></table>"
startspan -->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>Impossibile visualizzare il contenuto del database nel componente Risultati database della pagina corrente. Il nome file della pagina deve avere estensione '.asp' e il sito Web deve trovarsi in un server che supporta Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Risultati ORDER BY Data_e_ora DESC"
fp_sDefault=""
fp_sNoRecords="Nessun record restituito."
fp_sDataConn="ar.pv"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=1
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ID=3&data=202&oggetto=202&inviata=2 02¬izia=203&Nome_computer_remoto=202&Nome_utent e=202&Tipo_browser=202&Data_e_ora=135&sport=202&T1 =202&oggetto_notizia=202&"
fp_iDisplayCols=5
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
s-column="data" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>data<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"data")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="5307" --></p>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
s-column="sport" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>sport<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"sport")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="11720" --></p>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
s-column="oggetto_notizia" b-tableformat="FALSE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>oggetto_notizia<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"oggetto_notizia")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="42906" --></p>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
s-column="notizia" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>notizia<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"notizia")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="16105" --></p>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
s-column="inviata" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat
preview="<font size="-1">&lt;&lt;</font>inviata<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"inviata")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="15647" --></p>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="FALSE"
u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="1" clientside tag="BODY"
preview="<table border=0 width="100%"><tr><td bgcolor="#FFFF00"><font color="#000000">Fine dell'area risultati database.</font></td></tr><TR><TD VALIGN=MIDDLE><NOBR><INPUT TYPE=Button VALUE=" |< "><INPUT TYPE=Button VALUE=" < "><INPUT TYPE=Button VALUE=" > "><INPUT TYPE=Button VALUE=" >| "> [1/1]</NOBR><BR></td></tr></table>"
startspan -->