Salve a tutti,sono nuovo di questo forum ma spero di avere azzaccato la sezione!
Io ho una pagina in html contenente un form che ad un certo punto ha:
codice:
<form name='inserisci' id='inserisci'method="post" action="checkinserisci.php" onReset="return confirm('Do you really want to reset the form?')">
...
Allega foto <input type='hidden' id='foto' value='indirizzo di una foto'></input>
Il javascript della funzione popup è il seguente:
codice:
function Popup(file) { var w = 450; var h = 250; var l = Math.floor((screen.width-w)/2); var t = Math.floor((screen.height-h)/2); window.open(file,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l); }
Questo apre un popup con il codice della pafina file.
Nel mio caso quindi avendo messo foto.php come parametro,
apre la seguente pagina che ad un certo punto fa così:
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Inserisci foto</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <div align='center'> <?php if(isset(????)){?> [img]<?php echo"???";?>[/img] <?php } ?> <table align="center"> <tr><td> <form enctype="multipart/form-data" method="post" action="" name="uploadform"> Select the foto:
<input type="file" name="file1" size="50">
<input type="submit" value="invia immagine" name="invio"> <input type="button" value="chiudi" name="chiudi" onclick="self.close()"> </form> </td></tr> </table> </div> </body> </html>
Il mio problema ora è cosa mettere al posto dei ?????!
Io volevo mettere il valore del campo hidden foto della pagina iniziale.
Tutto ciò è possibile in Php o in Javascript?