Jump to content

Archived

This topic is now archived and is closed to further replies.

SieRobin

RN!? WHAT THE HECK?

Recommended Posts

Is there any significant portion I have to put that into, in the htaccess file?

Share this post


Link to post
Share on other sites
Small example of formatting

[code]
<?php

$mess="hi there iam redarrow and i like php ";

//see only words from 0 - 14
$mess=substr($mess,0,21);

//wordwrap add <br> letter afther word 14
$mess=wordwrap($mess,14,"<br>",1);

echo "<br>$mess<br>";

//when ever hit the enter key put a <br> aftherwards.
$message=nl2br($message);


echo"<font color='red'>$message<br></font>";


?>

<form method="post" action="">
<br>
please enter message
<br>
<textarea name="message" col"20" rows="10"></textarea>
<br>
<input type="submit" name="submit" value="send message">
<br>
</form>

[/code]

Share this post


Link to post
Share on other sites
maybe you should post the htacces for overs i suck at htaccess but someone should be able to help.

Share this post


Link to post
Share on other sites
[code]# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.feudalage.com
AuthUserFile /home/sierobin/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/sierobin/public_html/_vti_pvt/service.grp[/code]

That's what's in htaccess.

Share this post


Link to post
Share on other sites
Ok I kinda figured it out after a google search lol. Apparently, I need this to not get the server error.

[code]<ifmodule mod_php4.c>
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag magic_quotes_sybase Off
</ifmodule>[/code]

Although this does nothing, uhhh maybe there's something else?

Share this post


Link to post
Share on other sites
I'm really sure what is going on really. However try this simple script:
[code]<?php

if(isset($_POST['submit']))
{
    echo "<b>The Message:</b><br />\n" . nl2br($_POST['msg']) . "<hr />\n";
}

?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  <textarea name="msg">Enter your message</textarea><br />
  <input type="submit" name="submit" value="Post Message" />
</form>[/code]
Do you get the same result as you do with your forum?

Share this post


Link to post
Share on other sites
It's basically outputted by a textarea.. whenever you hit enter, it enters "rn" instead of "\n".

Share this post


Link to post
Share on other sites
The answer to your question is no wildteen, it works PERFECTLY with the script you posted.. why mine doesn't work.. well you got me lol.

Share this post


Link to post
Share on other sites
Ahha! Me and a friend solved the problem! My connect.php naturally is an include, and it contained escapes that were messed with the output of it. So we got rid of them! Works great now :D

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.