ciao ragazzi. Ho creato un sito con front page 03.Ho un problema che mi sta facebdo impazzire. Ho un modulo che invia i dati ad un database che poi vengono estratti dallo stesso in una pagina risultati.
Quando immetto il testo nel modulo e vado accapo, nell'area dei risultati il testo è su un unica riga. Esempio :
se scrivo nel modulo:
ciao.
a domani
Nell'area dei risultati visualizzo:
ciao.a domani
Questo il codice del modulo di invio:
arFormFields0(0) = "inviata"
arFormDBFields0(0) = "inviata"
arFormValues0(0) = Request("inviata")
arFormFields0(1) = "notizia"
arFormDBFields0(1) = "notizia"
arFormValues0(1) = Request("notizia")
arFormFields0(2) = "oggetto_notizia"
arFormDBFields0(2) = "oggetto_notizia"
arFormValues0(2) = Request("oggetto_notizia")
arFormFields0(3) = "data"
arFormDBFields0(3) = "data"
arFormValues0(3) = Request("data")
arFormFields0(4) = "sport"
arFormDBFields0(4) = "sport"
arFormValues0(4) = Request("sport")
questo invece il codice della textarea
<textarea rows="11" name="notizia" cols="25"></textarea>
questa la pagina che riceve i dati dal modulo
<!--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="Database2"
b-tableformat="FALSE" b-menuformat="FALSE"
s-menuchoice="data" s-menuvalue="data" b-tableborder="FALSE"
b-tableexpand="FALSE" b-tableheader="FALSE"
b-listlabels="FALSE" b-listseparator="TRUE"
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 b-UseDotNET="FALSE" CurrentExt sa-InputTypes
b-DataGridFormat="FALSE"
b-DGridAlternate="TRUE" sa-CritTypes
b-WasTableFormat="FALSE" -->
<% 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="Database2"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=1
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice="data"
fp_sMenuValue="data"
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
%>
<p
align="center">
<font size="2" color="#429940">
<!--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>"
s-ColumnTypes="3,202,202,202,203,202,202,202,135,202 ,202,202"
startspan --><%=FP_FieldVal(fp_rs,"data")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="5307" --></font></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>"
s-ColumnTypes="3,202,202,202,203,202,202,202,135,202 ,202,202"
startspan --><%=FP_FieldVal(fp_rs,"sport")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="11720" --></p>
<font size="2" color="#429940">
<!--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" --></font></p>
<font size="2">
<!--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" --></font></p>
<font size="2" color="#429940">
<!--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" --></font></p>
<hr>
<div align="center">
<!--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 -->
</div>
<div align="left">
[b]<font size="2">scorri le notizie
Spero di avervi fornito il materiale necessario per darmi una mano.
Grazie
ciao