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]
Link to comment
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.
Link to comment
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?
Link to comment
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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.