jquery how to find if div with specific id exists
if($("#"+ name).length ==0){
//it doesn't exist
}
if($("#"+ name).length ==0){
//it doesn't exist
}
<?php error_reporting(E_ALL); if(isset ($_POST[“send”])) { $upload_name=$_FILES[“upload”][“name”]; $upload_type=$_FILES[“upload”][“type”]; $upload_size=$_FILES[“upload”][“size”]; $upload_temp=$_FILES[“upload”][“tmp_name”]; $message=$_POST[“msg”]; $body=”; $subject = $_POST[“subject”]; $to=$_POST[“to”]; $separator = md5(time()); $eol = PHP_EOL; $from=’admin@spoolster.com’; $filename =’bankcopy.jpg’; if($message==””||$subject==””||$to==””) { echo ‘<font style=”font-family:Verdana, Arial; font-size:11px; color:#F3363F; font-weight:bold”>Please fill all fields</font>’; } else { $fp = fopen($upload_temp, “rb”); $file = fread($fp, $upload_size); $attachment = chunk_split(base64_encode($file)); $num = md5(time()); // main…
$headers = ‘From: Infinity Infosystem Pvt. Ltd.<info@infinityinfosystem.com>’ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”;