Textfield
9 antwoorden
Gesponsorde links
Os8 - 27/03/2005 17:36 (laatste wijziging 27/03/2005 17:41)
PHP interesse
En heu hoe doe je dat dan?
Hoe komt dat die geen enters weergeeft als ik ze in textfield enter.
<html>
<center>
<font color='black'>
<table border='0' bordercolor='white'>
<TR><TD colspan='2' align='center'><B><font color='black' face='verdana' size='1'><U>Post uw tutorial</U></B><br><br></TD></TR>
<TR><TD>
<form action='?l=tutorials&page=addin' method='post'>
<font color='000000' face='verdana' size='1'>Titel:</TD>
<TD>
<input type='text' class='post' name='tuttitle' STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'></TD></TR>
<TR><TD>
<font color='black' face='verdana' size='1'>Auteur:</TD>
<TD>
<input type='text' class='post' name='tutauthor' STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'></TD></TR>
<TR><TD>
<font color='000000' face='verdana' size='1'>Email:</TD>
<TD>
<input type='text' class='post' name='tutemail' STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'></TD></TR>
<TR><TD>
<font color='000000' face='verdana' size='1'>Moeilijkheidsgraad:</TD>
<TD>
<SELECT NAME='tutdifficulty' SIZE='1' STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'>
<OPTION SELECTED>CSS
<OPTION>Html
<OPTION>Php
<OPTION>Php & Mysql
<OPTION>ASP
<OPTION>Webservers
<OPTION>Photoshop
<OPTION>Graphics
<OPTION>Overige
<OPTION>Onzin
</SELECT></TD></TR>
<TR><TD>
<font color='000000' face='verdana' size='1'>Tutorial:</TD>
<TD>
<TEXTAREA NAME='tuttutorial' ROWS=9 COLS=40 STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'>
</TEXTAREA></TD></TR>
<TR><TD></TD><TD><INPUT TYPE='submit' value='Submit' STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'>
<INPUT TYPE='reset' value='Reset' STYLE='scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;'></TD></TR></table><br><font color='white'>
</form><font color='black' face='verdana' size='1'>Om een afbeelding te posten ga je als volgt: [img]http://www.site.com/image.jpg[/img]<br>
< html>
< center>
< font color= 'black' >
< table border= '0' bordercolor= 'white' >
< TR>< TD colspan= '2' align= 'center' >< B>< font color= 'black' face= 'verdana' size= '1' >< U> Post uw tutorial</ U></ B>< br>< br></ TD></ TR>
< TR>< TD>
< form action= '?l=tutorials&page=addin' method= 'post' >
< font color= '000000' face= 'verdana' size= '1' > Titel:</ TD>
< TD>
< input type= 'text' class = 'post' name= 'tuttitle' STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' ></ TD></ TR>
< TR>< TD>
< font color= 'black' face= 'verdana' size= '1' > Auteur:</ TD>
< TD>
< input type= 'text' class = 'post' name= 'tutauthor' STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' ></ TD></ TR>
< TR>< TD>
< font color= '000000' face= 'verdana' size= '1' > Email:</ TD>
< TD>
< input type= 'text' class = 'post' name= 'tutemail' STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' ></ TD></ TR>
< TR>< TD>
< font color= '000000' face= 'verdana' size= '1' > Moeilijkheidsgraad:</ TD>
< TD>
< SELECT NAME= 'tutdifficulty' SIZE= '1' STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' >
< OPTION SELECTED> CSS
< OPTION> Html
< OPTION> Php
< OPTION> ASP
< OPTION> Webservers
< OPTION> Photoshop
< OPTION> Graphics
< OPTION> Overige
< OPTION> Onzin
</ SELECT></ TD></ TR>
< TR>< TD>
< font color= '000000' face= 'verdana' size= '1' > Tutorial:</ TD>
< TD>
< TEXTAREA NAME= 'tuttutorial' ROWS= 9 COLS= 40 STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' >
</ TEXTAREA></ TD></ TR>
< TR>< TD></ TD>< TD>< INPUT TYPE= 'submit' value= 'Submit' STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' >
< INPUT TYPE= 'reset' value= 'Reset' STYLE= 'scrollbar-base-color:black; scrollbar-arrow-color:#2B618F; scrollbar-track-color:#2B618F; scrollbar-darkshadow-color:; scrollbar-shadow-color:; scrollbar-face-color:#2B618F; font-size: 11px; font-family: verdana; color: #000000; background-color: FFFFFF; border-top: 1px dotted #485574; border-left: 1px dotted #485574; border-right: 1px dotted #485574; border-bottom: 1px dotted #485574;' ></ TD></ TR></ table>< br>< font color= 'white' >
</ form>< font color= 'black' face= 'verdana' size= '1' > Om een afbeelding te posten ga je als volgt: [ img] http: //www.site.com/image.jpg[/img]<br>
Legolas - 27/03/2005 17:43
Onbekend
Ja, gewoon $bericht=nl2br($bericht;
Is enige & beste oplossing.
Os8 - 27/03/2005 17:43 (laatste wijziging 27/03/2005 17:49)
PHP interesse
Dit kan waarschijnlijk helpen maar mijn hersenen weten niet precies waar die plaatsen in script
Kheb ier een stukje dat er mee te maken heeft met textarea:
$ftut = htmlentities($tuttutorial);
[code] $etut = str_replace("/n", "<br>", "$ftut");
$mtut = str_replace("[img]", "<img src=", "$etut");
$ptut = str_replace("[/img]", ">", "$mtut");
[/code]
Deze lijn heb ik gewijzigt met /n erbij te zetten.
$etut = str_replace("/n", "<br>", "$ftut");
leendertW - 27/03/2005 17:47
PHP beginner
je hebt een query, vervolgens hang je denk ik een while lus aan die query.
wanneer je het bericht echo's kan je:
echo nl2br ($bericht ); doenof zoals Logolas zegt.
while ( $aBerichtWeergeven = mysql_fetch_assoc ( $rBerichtWeergeven ) )
{
$sBericht = nl2br($aBerichtWeergeven['bericht']);
echo $sBericht;
}
{
$sBericht = nl2br ( $aBerichtWeergeven [ 'bericht' ] ) ; }
Os8 - 27/03/2005 17:53 (laatste wijziging 27/03/2005 17:56)
PHP interesse
Ik snap er de **** van!
In die dingen staat geen lus enzo alleen include van textarea met dit eraan:
$ftut = htmlentities($tuttutorial);
$etut = str_replace("", "<br>", "$ftut");
$mtut = str_replace("[img]", "<img src=", "$etut");
$ptut = str_replace("[/img]", ">", "$mtut");
Owke als ik in textarea /n zet geeft die enter.
Kan je nu even bespreken hoe ik die correct omzet in dat script hierboven.
Rens - 27/03/2005 18:31
Crew algemeen
$ftut = htmlentities($tuttutorial);
$etut = nl2br($ftut);
$mtut = str_replace("[img]", "<img src=", "$etut");
$ptut = str_replace("[/img]", ">", "$mtut");
Dat zou het moeten doen...
Gesponsorde links
Dit onderwerp is gesloten .