HI
I am trying to use a php script from a coder called Ridwank, gb-text which is ideal for my guestbook purpose. As it is flat file system and has an admin area, however when using the login area the password and username appear underneath the fields. I am pretty new to php and do not not want to mess around with the code. Any help would be greatly appreciated, on how I could adapt the script so that username and password were not shown and could be inputted.
<? $data="data.txt"; // file guestbook data $maxchar=250; // maximum characters for guesbook comments $adm_user="demo"; // ADMIN USER $adm_pswd="1234"; // ADMIN PASSWORD function conv_asc2html($str,$mode){ if ($mode==1){ $str=str_replace(">",">",$str); $str=str_replace("<","<",$str); $str=str_replace(""",'"',$str); } if ($mode==2){ $str=str_replace(">",">",$str); $str=str_replace("<","<",$str); $str=str_replace('"',""",$str); } return $str; } function splitwordx(&$text,$w_max,$w_cut){ if (!strstr($text," ")){ $text=$text." "; } $word = explode(" ", $text); if (empty($w_max)){ $w_max=10; } if (empty($w_cut)){ $w_cut=10; } for ($w=0; $w$w_max){ $wordnew=""; $wordpart=""; for ($l=0; $l<ceil($wordlen/$w_cut); $l++){ $wordpart[$l]=substr($word[$w],($l*$w_cut),$w_cut)." "; } $wordnew=implode(" ",$wordpart); $word[$w]=$wordnew; } } $text = implode(" ", $word); return $text; } function disperr($str){ echo "Page Error : $str |