".$uploadfile; $_SESSION["uploadfile"] = $uploadfile; if($ext != "") { if(($_FILES['Event_PDF']['size']) > 20971520) { $errors['EventFL'] = "File Size is more than 20MB"; } //if((!ereg(".pdf", $filename))) { $errors['EventFL'] = "Event Brochure : Only PDF allowed"; } } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print_r($errors); return (count($errors) == 0); } //--------------------------------------------------------------------------------------------------------------------------------------- // DISPLAY FORM FUNCTION //--------------------------------------------------------------------------------------------------------------------------------------- function outputOptionList($list, $selected) { foreach ($list as $item) echo "\n"; } function DisplayForm($values, $errors) { // $chars = "abcdefghijkmnopqrstuvwxyz023456789"; $i=0; $d=date(d); $m=date(F); $n=date(n); $y=date(Y); //print_r($optionListYear); ?> CSEC - Add News
ADMIN PANEL
Add News/Announcements

 

To add a News/Announcement, please fill the detailed information...

1. News/Announcement Name : 
 
2. Do you want to upload file for the link? :  name="UpFile" onClick="this.form.submit()">Yes  name="UpFile" onClick="this.form.submit()"> No
 
3. News URL :
3. Upload File   :  
 
4. Days to keep the news in scroll :
 
      
 

 



Problem with adding New Link into the Database...