0

how can i put this code into php echo?

   <label for="upload-file"> </label>
</center>
<a href="/rotkanye/"  onclick="window.open('/upload/', 'newwindow', 'width=300, height=250'); return false;"> 
<div class="upload-button">

<div class="upload-cover">muck
    </div>

</div> <!-- .upload-button -->
</a>

i want to show this button after upload is done, so i used if what i should put after if?

jurky
  • 1
  • If I understand you correctly, this is what you want: You have a link/button. If that button is pressed, another window opens - this window contains an upload form. Once this upload has been started and completed, you want another button to appear on the first html page? If so, that's not possible using PHP only. You can save the upload status on your server once it is completed and check this status from the first page via AJAX. Then you can insert the button via JavaScript. – Imanuel Apr 22 '17 at 12:55
  • I want upload button appear on the page, where is the file uploaded. – jurky Apr 22 '17 at 14:16
  • Does the upload need to be completed for the button to appear or is it enough that the upload window has been opened? – Imanuel Apr 22 '17 at 17:15
  • new window isnt needed, but it was easier to code this way, purpose of the button is upload file and redirect user to anither page, where is this image used – jurky Apr 24 '17 at 22:00

0 Answers0