I cannot figure out why my form does not want to submit its data into my recipes table after clicking submit. When I click the submit button the form just refreshes,
I have an echo for successful set but it does not appear along with no error messages and no data in my database.
Here is the HTML
<div class="row">
<div class="main-login main-center">
<h1>Add Recipe</h1>
<form enctype="multipart/form-data" action="#" method="post">
<div class="form-group">
<label for="recipe_name" class="cols-sm-2 control-label">Recipe Name</label>
<div class="cols-sm-10">
<div class="input-group">
<input type="text" class="form-control" name="recipe_name" id="recipe_name" placeholder="Recipe Name"/>
</div>
</div>
</div>
<div class="form-group">
<label for="recipe_duration" class="cols-sm-2 control-label"> Recipe Duration </label>
<div class="cols-sm-10">
<div class="input-group">
<input type="text" class="form-control" name="recipe_duration" id="recipe_duration" placeholder="Recipe Duration"/>
</div>
</div>
</div>
<div class="form-group">
<label for="recipe_ingredient" class="cols-sm-2 control-label"> Ingredients </label>
<div class="cols-sm-10">
<div class="input-group">
<input type="text" class="form-control" name="recipe_ingredient" id="recipe_ingredient" placeholder="Ingredients"/>
</div>
</div>
</div>
<div class="form-group">
<label for="recipe_nutrition" class="cols-sm-2 control-label"> Recipe Nutrition </label>
<div class="cols-sm-10">
<div class="input-group">
<input type="text" class="form-control" name="recipe_nutrition" id="recipe_nutrition" placeholder="Recipe Nutrition"/>
</div>
</div>
</div>
<div class="form-group">
<label for="recipe_method" class="cols-sm-2 control-label"> Recipe Directions </label>
<div class="cols-sm-10">
<div class="input-group">
<input type="text" class="form-control" name="recipe_method" id="recipe_method" placeholder="Recipe Directions"/>
</div>
</div>
</div>
<div class="form-group">
<label for="profile_image">Recipe Image</label>
<input type="file" name="recipe_image" id="recipe_image">
<p class="help-block">Upload an image of the recipe</p>
<img class="recipeImage" src="./recipe_images/"/>
</div>
<div class="form-group">
<button type="submit" class="btn btn-success btn-lg btn-block login-button">Submit</button>
</div>
</form>
</div>
and PHP
<?php
if(isset($_POST['submit'])){
//Insert DB
$query = "INSERT INTO recipes (recipe_name, recipe_duration, recipe_ingredient, recipe_nutrition, recipe_method) VALUES (:recipe_name, :recipe_duration, :recipe_in
gredient, :recipe_nutrition, :recipe_method)";
$result = $DBH->prepare($query);
$result->bindParam(':recipe_name', $_POST['recipe_name']);
$result->bindParam(':recipe_duration', $_POST['recipe_duration']);
$result->bindParam(':recipe_ingredient', $_POST['recipe_ingredient']);
$result->bindParam(':recipe_nutrition', $_POST['recipe_nutrition']);
$result->bindParam(':recipe_method', $_POST['recipe_method']);
if($target_file){
$result->bindParam(':recipeImage', $newFilename);
}
if($result->execute()){
echo '<div class="alert alert-success" role="alert">Recipe Added!</div>';
}
if($_FILES['recipeImage']["name"]){
//Let's add a random string of numbers to the start of the filename to make it unique!
$newFilename = md5(uniqid(rand(), true)).$_FILES["profile_image"]["name"];
$target_file = "./recipe_images/" . basename($newFilename);
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image
$check = getimagesize($_FILES["recipeImage"]["tmp_name"]);
if($check === false) {
echo "File is not an image!";
$uploadError = true;
}
//Check file already exists - It really, really shouldn't!
if (file_exists($target_file)) {
echo "Sorry, file already exists.";
$uploadError = true;
}
// Check file size
if ($_FILES["recipeImage"]["size"] > 500000) {
echo "Sorry, your file is too large.";
$uploadError = true;
}
// Allow certain file formats
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"
&& $imageFileType != "gif" ) {
echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
$uploadError = true;
}
// Did we hit an error?
if ($uploadError) {
echo "Sorry, your file was not uploaded.";
} else {
//Save file
if (move_uploaded_file($_FILES["recipeImage"]["tmp_name"], $target_file)) {
//Success!
} else {
echo "Sorry, there was an error uploading your file.";
}
}
}
}
?>
Because you have no element with name="submit" and you're testing for it here if(isset($_POST['submit'])){
Your submit should be an input, not a button:
<input type="submit" class="btn btn-success btn-lg btn-block login-button" value="Submit" />
<input type="submit" name="submit" value="Submit"class="btn btn-success btn-lg btn-block login-button">
change the submit button like this
<button type="submit" class="btn btn-success btn-lg btn-block login-button">Submit</button>
instead of
<input type="submit" class="btn btn-success btn-lg btn-block login-button" value="Submit" name="submit">
Change
<button type="submit" class="btn btn-success btn-lg btn-block login-button">Submit</button>
To
<button type="submit" name="submit" class="btn btn-success btn-lg btn-block login-button">Submit</button>
Actually you needed to add a name attribute to the button element, so that you can identify the element in the following php line
if(isset($_POST['submit'])){
The line above checks for a "POST"ed element identified by the name 'submit'.
Related
I've done an upload page that should upload the files and set their name in the database. It works just perfect with the pictures , but the sound formats and the other ones doesn't seem to work.
This is how my html part look
<form method="post" enctype="multipart/form-data">
<div class="card card-login">
<?= FH::csrfInput() ?>
<div class="card-header text-center" data-background-color="rose" >
<h3 class="card-title">Upload</h3>
</div>
<div class="card-content">
<div class="input-group">
<span class="input-group-addon">
</span>
<div class="form-group label-floating">
<label class="control-label"><h4>Chose a name for the file</h4></label>
<br>
<input type="textd" name="name" id="name" class="form-control" value="">
</div>
<br><br>
<div class="form-group label-floating">
<label class="control-label"><h4>Choose a file</h4></label>
<br>
<input type="file" id="file" name="file" >
</div>
</div>
</div>
<div class="footer text-center">
<div class="file-upload">
<label for="submit" class="file-upload__label">
<div class="isa_error_class">
<?= FH::displayErrors($this->displayErrors)?>
</div>
<button class="btn btn-wd btn-lg" data-background-color="rose">Submit</button>
</label>
<input type="submit" name="submit" value="Submit" class="file-upload__input">
</div>
</div>
</form>
And there is the php part
if($this->request->isPost())
{
$this->request->csrfCheck();
$upload->assign($this->request->get());
$upload->user_id = Users::currentUser()->id;
$upload->name .= "." . pathinfo($_FILES['file']['name'] , PATHINFO_EXTENSION);
$value = pathinfo($_FILES['file']['name'] , PATHINFO_EXTENSION);
$upload->format = Upload::setFormat($value);
$dir = Users::currentUser()->id;
if(move_uploaded_file($_FILES["file"]["tmp_name"],'files' . DS . $dir . DS . $upload->name ))
{
if($upload->save())
{
Router::redirect('upload');
}
else
{
$upload->addErrorMessage('file','There were a problem saving in the database.');
}
}
else
{
$upload->addErrorMessage('file','There were a problem uploading it.');
}
}
The DS is the separator. The image formats seems to work perfect , but the other formats don't. Any ideas ?
You should check if u have allowed file_uploads = On in your php.ini and also check the maximum file size upload_max_filesize= 20M and to make sure that you are not passing it.
I am trying to send multiple files in one request using DropZone js.
<script type="text/javascript">
Dropzone.autoDiscover = false;
var file= new Dropzone(".dropzone",{
url: any url,
method:"post",
paramName:"PhotoFiles",
addRemoveLinks:true,
autoProcessQueue: false
});
//Upload file onsubmit
$('#UploadMultiFiles').submit(function(){
file.processQueue();
});
file.on("sending",function(a,b,c){
a.token=Math.random();
c.append("token",a.token);
});
The issue is I have other inputs in the same form that is why I used onsubmit, and these inputs are saved in a table and the images from dropzone are saved in another table with and both tables have one to many relationship
The Controller like:
public function university_offers($id){
$data['university_offer_name']=$this->input->post('university_offer_name');
$data['university_id_fk']=$this->input->post('university_id_fk');
$data['university_offer_details']=$this->input->post('university_offer_details');
if ($this->input->post('save')){
$data2['university_offer_id_fk'] = insertrecords('university_offers',$data);
$data2['university_id_fk'] = $data['university_id_fk'];
//when I put the next IF at the begining of the function it works but ofcourse without the other data fields that I need.
if(isset($_FILES) && $_FILES != null){
$data2['photo_name'] = upload_image('PhotoFiles');
insertrecords('university_offer_photos',$data2);
}
if (insertrecords('university_offer_photos',$data2)==true)
message('success','');
redirect('Admin/university_offers/0','refresh');
}
$data['view']="admin/universities/university_offers";
$this->load->view('index',$data);
}
What I need is sending al uploaded files and do a loop in the controller to save it right in the database, not sending each file to the controller and saving it.
Edit:
My view is like:
<form action="university_offers/<?=$id?>" id="UploadMultiFiles" autocomplete="off" method="post" enctype="multipart/form-data" class="m-t-5" novalidate>
<div class="form-body">
<h3 class="card-title">بيانات العرض</h3>
<hr>
<div class="row p-t-20">
<div class="col-md-6">
<div class="form-group">
<label class="control-label">إسم العرض<span class="text-danger">*</span></label>
<div class="controls">
<input type="text" autocomplete="off" name="university_offer_name" class="form-control" required value="<?php if(isset($result)) echo $result['university_offer_name']?>" data-validation-required-message="يجب إدخال إسم العرض" placeholder="إسم العرض">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label">إسم الجامعة<span class="text-danger">*</span></label>
<div class="controls">
<select name="university_id_fk" id="select" class="form-control" required data-validation-required-message="يجب إختيار الجامعة" aria-invalid="false">
<option value="">إختر الجامعة</option>
<?php
foreach (selectrecords("*",'universities') as $university):
$select = '';
if(isset($result) && $result['university_id_fk'] == $university->university_id_pk)
$select = 'selected';
?>
<option <?=$select?> value="<?php echo $university->university_id_pk ?>"><?php echo $university->university_name ?></option>
<?php endforeach;?>
</select>
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label class="control-label">تفاصيل العرض<span class="text-danger">*</span></label>
<div class="controls">
<textarea id="mymce" name="university_offer_details"><?php if(isset($result)) echo $result['university_offer_details'] ?></textarea>
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label class="control-label">صور العرض<span class="text-danger">*</span></label>
<div class="row">
<?php
if(isset($result)) {
foreach (selectrecords('*','university_offer_photos',array('university_offer_id_fk'=>$result['university_offer_id_pk'])) as $photo):
echo'
<div class="form-group text-center" id="'.$photo->photo_id_pk.'">
<div class="col-md-12">
<img style="border: none; height: 150px; width: 150px; border-radius: 10px;" class="img-thumbnail" src="'.base_url().'public/uploads/images/'.$photo->photo_name.'">
</div>
حذف الملف
</div>
';
endforeach;
}
?>
</div>
<div class="dropzone">
<div class="dz-message">
<span> Drag and Drop your files here Or Click here to upload</span>
</div>
</div>
</div>
</div>
</div>
<div class="form-actions">
<input type="hidden" id="url" value="university_offers/<?=$id?>" />
<?php
if($id == 0)
echo '<button type="submit" id="butt" name="save" value="save" class="btn btn-primary"> <i class="fa fa-check"></i> حفظ</button>';
else
echo '<button type="submit" id="butt" name="edit" value="edit" class="btn btn-primary"><i class="fa fa-check"></i> حفظ</button>';
?>
<button type="reset" class="btn btn-inverse"><i class="fa fa-times"></i> إلغاء</button>
<?php
if($id == 0)
echo'<button type="button" id="backword" class="btn btn-second"><i class="fa fa-undo"></i> رجوع</button>';
else{
echo '<input type="hidden" name="university_offer_id_pk" value="'.$result['university_offer_id_pk'].'"/>
<button type="button" class="btn btn-second"><i class="fa fa-undo"></i> رجوع</button>';
}
?>
</div>
</div>
</form>
upload_image function, I put it in the Helper
function upload_image($file_name){
$CI =& get_instance();
$config['upload_path'] = 'public/uploads/images';
$config['allowed_types'] = 'gif|Gif|ico|ICO|jpg|JPG|jpeg|JPEG|BNG|png|PNG|bmp|BMP|WMV|wmv|MP3|mp3|FLV|flv|SWF|swf';
$config['max_size'] = '1024*8';
$config['encrypt_name']=true;
$CI->load->library('upload',$config);
if(! $CI->upload->do_upload($file_name)){
return false;
}else{
$datafile = $CI->upload->data();
thumb($datafile);
watermark($datafile);
return $datafile['file_name'];
}}
I'm trying to upload a picture to my server and save the image name to my database. But if I fill in my form it just refreshes and does nothing. Does someone know why it doesn't save to the folder?
If my submit button is clicked I run this PHP code:
<?php
if(isset($_POST['btn_save_updates'])) {
$id = $_GET['id'];
$email = $_POST['email'];
$signature = $_POST['signature'];
//if they DID upload a file...
if($_FILES['avatar']['name'])
{
//if no errors...
if(!$_FILES['avatar']['error'])
{
//now is the time to modify the future file name and validate the file
$new_file_name = strtolower($_FILES['avatar']['tmp_name']); //rename file
if($_FILES['avatar']['size'] > (2048000)) //can't be larger than 1 MB
{
$valid_file = false;
$error = 'Oops! Your file\'s size is to large.';
}
//if the file has passed the test
if($valid_file)
{
//move it to where we want it to be
move_uploaded_file($_FILES['avatar']['tmp_name'], 'avatar/'.$new_file_name);
$filename = $_FILES['avatar']['name'];
// run update statement here ...
$error = 'Settings have been updated.';
}
}
//if there is an error...
else
{
//set that to be the returned message
$error = 'Oops! Error: '.$_FILES['avatar']['error'];
}
}
}
?>
HTML Form:
<form method="post" role="form" autocomplete="off">
<div class="form-group">
<label for="email">Email</label>
<input type="text" name="email" id="email" tabindex="1" class="form-control" value="<?php userProfile("email"); ?>" autocomplete="off">
</div>
<div class="form-group">
<label for="signature">Signature <i id="sign_tooltip" class="fa fa-exclamation-circle" aria-hidden="true" ata-toggle="tooltip" data-placement="right" title="You can add images to your signature!"></i></label>
<script>
$("#sign_tooltip").hover(function(){
$('#sign_tooltip').tooltip('show')
});
</script>
<textarea rows="4" name="signature" id="signature" tabindex="3" class="form-control" autocomplete="off"><?php userProfile("signature"); ?></textarea>
</div>
<br /><br />
<div class="form-group">
<label for="email">Avatar</label><br /><br />
<img src="avatars/<?php userInfo('avatar'); ?>" alt="Default Avatar" class="img-circle" width="140" height="140"><br /><br />
<input name="avatar" id="avatar" tabindex="4" class="input-group" type="file" accept="image/*" />
</div>
<div class="form-group">
<div class="row">
<div class="col-xs-7">
</div>
<div class="col-xs-5 pull-right">
<button type="submit" name="btn_save_updates" id="btn_save_updates" tabindex="5" class="form-control btn btn-success"><i class="fa fa-floppy-o" aria-hidden="true"></i> Save </button>
</div>
</div>
</div>
</form>
You forgot to add enctype="multipart/form-data" to your form.
I'm trying to upload 3 images to my server
I have 3 file inputs in the same form.
so far, I receive the following parameters through post (3 images)
$license_img, $car_pic, $driver_pic
And here I try to upload thouse images to server.
if($license_img!= '') {
$license_decoded = base64_decode($license_img);
$license_pic_path = '....images/licenses/'.$email.'.jpg';
file_put_contents($license_pic_path, $license_decoded);
}
if($driver_pic != '') {
$driver_decoded = base64_decode($driver_pic);
$driver_pic_path ='....images/profiles/'.$email.'.jpg';
file_put_contents($driver_pic_path, $driver_decoded);
}
if($car_pic != '') {
$car_decoded = base64_decode($car_pic);
$car_pic_path = '....images/cars/'.$email.'.jpg';
file_put_contents($car_pic_path, $car_decoded);
}
In another script I upload one picture with file_put_content and it works just fine...
How is the right way to upload multiple images with one form?
Update
<script>
function getPicture(img) {
var file = document.getElementById(img);
file.click(); // open file
}
function onImgSelected(event) {
var pieces = event.target.value.split("\\\");
var filename = pieces[pieces.length-1];
if(event.target.id == "driver_img") {
document.getElementById("path_driver_img").value = filename;
} else if(event.target.id == "car_img"){
document.getElementById("path_car_img").value = filename;
} else {
document.getElementById("path_licenta_img").value = filename;
}
}
</script>
<!-- accept="jpeg,jpg,png,bmp" -->
<input type="file" style="display: none" accept="jpeg,jpg,png,bmp" name="driver_img" id="driver_img" onChange="onImgSelected(event)" />
<input type="file" style="display: none" accept="jpeg,jpg,png,bmp" name="car_img" id="car_img" onChange="onImgSelected(event)" />
<input type="file" style="display: none" accept="jpeg,jpg,png,bmp" name="license_img" id="license_img" onChange="onImgSelected(event)" />
<div class="form-group col-xs-12 space-bottom">
<label class="control-label">Driver Picture</label>
<div class="input-group">
<input type="text" class="form-control" id="path_driver_img" readonly>
<span class="input-group-btn">
<button class="btn btn-default" onClick="getPicture(\'driver_img\')" type="button">Up</button>
</span>
</div>
</div>
<div class="form-group col-xs-12 space-bottom">
<label class="control-label">Car Picture</label>
<div class="input-group">
<input type="text" class="form-control" id="path_car_img" readonly>
<span class="input-group-btn">
<button class="btn btn-default" onClick="getPicture(\'car_img\')" type="button">Up</button>
</span>
</div>
</div>
<div class="form-group col-xs-12 space-bottom">
<label class="control-label">Taxi License Image <font color="red">*</font></label>
<div class="input-group">
<input type="text" class="form-control" id="path_licenta_img" readonly>
<span class="input-group-btn">
<button class="btn btn-default" onClick="getPicture(\'license_img\')" type="button">Up</button>
</span>
</div>
</div>
</div>
<div class="col-xs-12"><br>
<div class="col-xs-12" align="center"> <input type="submit" value="Submit" class="btn btn-success btn-md"></div>
</div>
This is a very simple script for uploading images
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="file01" /><br />
<input type="file" name="file02" /><br />
<input type="file" name="file03" /><br />
<input type="text" name="text" /><br />
<input type="submit" value="Upload images" />
</form>
<?php
echo '$_FILES:'."<br /><pre>";
var_dump($_FILES);
echo "</pre>";
echo '$_POST:'."<br /><pre>";
var_dump($_POST);
echo "</pre>";
Please I Know that some of the Topics relating to my post is here but it does not actually seems to solve my problem. I have an uploader class and my Ajax upload is working fine without PHP connection. Now after Upload am trying to call in my file class to store the details to Database but not actually working out. I have searched all around both on youtube and none see to solve my problem
error_reporting(0);
if (isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") {
$path = "uploads/"; //set your folder path
//set the valid file extensions
$valid_formats = array("jpg", "png", "gif", "bmp", "jpeg", "GIF", "JPG", "PNG", "doc", "mp3", "txt", "docx", "pdf", "xls", "xlsx", "mp4"); //add the formats you want to upload
$name = $_FILES['myfile']['name']; //get the name of the file
$size = $_FILES['myfile']['size']; //get the size of the file
if (strlen($name)) { //check if the file is selected or cancelled after pressing the browse button.
list($txt, $ext) = explode(".", $name); //extract the name and extension of the file
if (in_array($ext, $valid_formats)) { //if the file is valid go on.
if ($size < 9433098888) { // check if the file size is more than 2 mb
$file_name = $_POST['filename'];
$new = $_POST['music_new']; //get the file name
$tmp = $_FILES['myfile']['tmp_name'];
if (move_uploaded_file($tmp, $path . $file_name.'.'.$ext)) { //
$sam->musicUpload('name','format','so on');
//please am in need of this. if i type echo $file_name works but can actually insert to my db.. i have no problem with my back end
}
else {
echo "failed";
}
} else {
echo "File size max 2 MB";
}
} else {
echo "Invalid file format..";
}
} else {
echo "Please select a file..!";
}
include'../../header.php';
echo $url;
}
<div class='category-tab shop-details-tab'><!--category-tab-->
<div class='col-sm-12'>
<ul class='nav nav-tabs'>
<li><a href='#details' data-toggle='tab'>Details</a></li>
<li><a href='#companyprofile' data-toggle='tab'>Company Profile</a></li>
<li><a href='#tag' data-toggle='tab'>Tag</a></li>
<li class='active'><a href='#reviews' data-toggle='tab'>Reviews (5)</a></li>
</ul>
</div>
<div class='tab-content'>
<div class='tab-pane fade' id='details' >
<div class='col-sm-3'>
<div class='product-image-wrapper'>
<div class='single-products'>
<div class='productinfo text-center'>
<img src='images/home/gallery1.jpg' alt='' />
<h2>$56</h2>
<p>Easy Polo Black Edition</p>
<button type='button' class='btn btn-default add-to-cart'><i class='fa fa-shopping-cart'></i>Add to cart</button>
</div>
</div>
</div>
</div>
</div>
<div class='tab-pane fade' id='companyprofile' >
<div class='col-sm-3'>
<div class='product-image-wrapper'>
<div class='single-products'>
<div class='productinfo text-center'>
<img src='images/home/gallery4.jpg' alt='' />
<h2>$56</h2>
<p>Easy Polo Black Edition</p>
<button type='button' class='btn btn-default add-to-cart'><i class='fa fa-shopping-cart'></i>Add to cart</button>
</div>
</div>
</div>
</div>
</div>
<div class='tab-pane fade' id='tag' >
<div class='col-sm-3'>
<div class='product-image-wrapper'>
<div class='single-products'>
<div class='productinfo text-center'>
<img src='images/home/gallery4.jpg' alt='' />
<h2>$56</h2>
<p>Easy Polo Black Edition</p>
<button type='button' class='btn btn-default add-to-cart'><i class='fa fa-shopping-cart'></i>Add to cart</button>
</div>
</div>
</div>
</div>
</div>
<div class='tab-pane fade active in' id='reviews' >
<div class='col-sm-12'>
<ul>
<li><a href=''><?php if($logged){ echo $username;}else{echo'Not Logged';}?></a></li>
<li><a href=''><i class='fa fa-clock-o'></i>12:41 PM</a></li>
<li><a href=''><i class='fa fa-calendar-o'></i>31 DEC 2014</a></li>
</ul>
<p> Plese make sure to upload Relevant files or else it will be deleted by the Head Admin(s). Thanks for Understanding</p>
<p><b>Write Your Review</b></p>
<div class="row">
<div class='tab-pane fade active in' id='reviews' >
<div class='col-sm-12'>
<h3>jQuery Ajax file upload with percentage progress bar</h3>
<form id="myform" method="post">
<div class="form-group">
<label>Enter the file name: </label>
<input class="form-control" type="text" id="filename" />
</div>
<span>
<input type="text" placeholder="Database Name" id='music_name'/>
<input type="text" placeholder="Producer"" id="music_producer" />
</span>
<br>
<span>
<input type="text" placeholder="Artist Name" id="music_artist"/>
<input type="text" placeholder="Album Name"/>
</span><br>
<textarea name="" placeholder="Music Description" id='music_desc'></textarea>
<div class="form-group">
<label>Select file: </label>
<input class="form-control" type="file" id="myfile" />
</div>
<div class="form-group">
<div class="progress">
<div class="progress-bar progress-bar-success myprogress" role="progressbar" style="width:0%">0%</div>
</div>
<div class="msg"></div>
</div>
<input type="button" id="btn" class="btn-success" value="Upload" />
</form>
<?php include'generalModal.php';
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div><!--/category-tab-->
<?php
include_once'../../music/reCommend.php'; echo'
<script src="'.$url.'panel/uploadMusic/processUpload.js"></script>';
include '../../Blog/Footer.php';