I have a index.php page that has following body
<?php
$uploaded = 0;
$slectionsize = 0;
?>
inside body of html i have
<?php
if($uploaded == 0){
echo '<div class="content1"><iframe scrolling="no" src="uploadmain.php" height="650" width="200%" frameborder="0" allowfullscreen="" title="Embedded post"></iframe></div>';
}
if($uploaded == 1){
echo "next iframe";
}
?>
so src of iframe uploadmain.php does file upload, after upload it echo success, Look at my uploadmain.php
if(empty($errors)==true){
move_uploaded_file($file_tmp,"images/".$file_name);
echo "Success";
}else{
print_r($errors);
}
So i want that after file upload my $uploaded variable becomes 1, and then my page refreshed and second iframe is displayed instead of first iframe and i also want to fetch the $file_name variable to home so that i can store it in database
Aucun commentaire:
Enregistrer un commentaire