0) { $forum=mysql_fetch_array(mysql_query("select * from esb2b_forum_data where es_id=$es_pid")); if(!$forum) { ?> 0) //IF SOME FORM WAS POSTED DO VALIDATION { $es_cid=(int)$_POST["es_cid"]; if(!get_magic_quotes_gpc()) { $es_username=str_replace("$","\$",addslashes($_POST["es_username"])); $es_email=str_replace("$","\$",addslashes($_POST["es_email"])); // $es_web=str_replace("$","\$",addslashes($_POST["es_web"])); $es_loc=str_replace("$","\$",addslashes($_POST["es_loc"])); $es_subject=str_replace("$","\$",addslashes($_POST["es_subject"])); $es_desc=str_replace("$","\$",addslashes($_POST["es_desc"])); } else { $es_cid=str_replace("$","\$",$_POST["es_cid"]); $es_username=str_replace("$","\$",$_POST["es_username"]); $es_email=str_replace("$","\$",$_POST["es_email"]); //$es_web=str_replace("$","\$",$_POST["es_web"]); $es_loc=str_replace("$","\$",$_POST["es_loc"]); $es_subject=str_replace("$","\$",$_POST["es_subject"]); $es_desc=str_replace("$","\$",$_POST["es_desc"]); } $es_web=""; if ( strlen(trim($es_username)) == 0 ) $errs[$errcnt++]="$Username_must_be_provided"; if ( strlen(trim($es_subject)) == 0 ) $errs[$errcnt++]="$Subject_must_be_provided"; if ( strlen(trim($es_desc)) == 0 ) $errs[$errcnt++]="$Message_must_be_provided"; if($errcnt==0) { $es_date=date("YmdHis",time()); $es_status="unlock"; $es_approved="no"; $query_insert="INSERT INTO esb2b_forum_data (es_sub, es_desc,es_postedon,es_username,es_email,es_location,es_web,es_status,es_pid,es_cid,es_approved) VALUES ('$es_subject', '$es_desc','$es_date','$es_username','$es_email','$es_loc','$es_web','$es_status',$es_pid,$es_cid,'$es_approved')"; //echo $query_insert; //die(); mysql_query($query_insert); if(mysql_affected_rows()>0) { if($es_pid<>0) $msg=urlencode("$Reply_has_been_posted_and_sent_for_admin_approval"); else $msg=urlencode("$Classified_has_been_posted_and_sent_for_admin_approval"); ?> ","

>>",str_replace("

","

>>",str_replace("
","
>>",str_replace("
","
>>",$forum["es_desc"])))); } //$config=mysql_fetch_array(mysql_query("select * from esb2b_config")); if(isset($_SESSION["esb2b_userid"])&&($_SESSION["esb2b_userid"]<>"")) { $es_username=$_SESSION["esb2b_username"]; //$es_email=$config["es_admin_email"]; } if(count($_POST)>0) { $es_cid=$_POST["es_cid"]; $es_username=$_POST["es_username"]; $es_email=$_POST["es_email"]; //$es_web=$_POST["es_web"]; $es_loc=$_POST["es_loc"]; $es_subject=$_POST["es_subject"]; $es_desc=$_POST["es_desc"]; } ?>
0) { ?>
"; ?>
 
:   align="right" align="left" >
:   align="right" align="left" >
:   align="right" align="left" >
  align="right" align="left" >
* align="right" align="left" >
* align="right" align="left" >