ומה אם ההפך?
יש לי סקריפט שנבנה כדי לעדכן חדשות באתר. הבעייה הו היא שהוא לא "מכיר" באנטרים, וכדי שיהיה אנטר אני צריך להוסיף BR. הקוד:
if($mid == "post"){ if(!$name or !$email or !$co){ echo "You forgot a field!"; }else{ $file_path = ´next.inc.php´; include ($file_path); $next = $next + 1; $write = ´<? $next=´ . $next . ´; ?>´; $file = fopen ($file_path, "w"); if (!$file) { echo "Unable to open $file_path!\n"; exit (); } else { fputs ($file, $write); } fclose($file); $fp = fopen("news.db", "r"); $cont = fgets($fp, filesize("news.db")); fclose($fp); $d = date(´d/m/y´); $fp = fopen("news.db", "w"); fputs($fp, "$co <br>Posted by <a href=mailto:$email>$name</a> on $d"); fclose($fp);
איך אני גורם לו "להתחשב" באנטרים שמכניסים לTEXTAREA?