Jump to content

RN!? WHAT THE HECK?


SieRobin

Recommended Posts

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]
[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.
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?
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?

Archived

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

×
×
  • Create New...

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.