|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Bannato
Iscritto dal: Feb 2003
Città: Anche Chuck Norris usa Debian e Gnome
Messaggi: 1270
|
[PHP] nome file da form
Codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>titolo</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php $formform= <form name='formModifica' method='post' action=''> <input type='file' size=60 name='filename' id='filename'> </form>; echo $formform; ?> </body> </html> |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Oct 2001
Messaggi: 11471
|
devi mettere in action un file .php. Quando clicchi sul bottone il nome viene inviato negli header http. Nel file .php non dovrai fare altro che usare:
Codice:
echo $_REQUEST['filename']; ![]() |
![]() |
![]() |
![]() |
#3 |
Bannato
Iscritto dal: Feb 2003
Città: Anche Chuck Norris usa Debian e Gnome
Messaggi: 1270
|
Se in action non metto niente, post non dovrebbe passare le variabili alla stessa pagina?
|
![]() |
![]() |
![]() |
#4 |
Bannato
Iscritto dal: Feb 2003
Città: Anche Chuck Norris usa Debian e Gnome
Messaggi: 1270
|
E poi ho bisogno anche del percorso completo, non solo del nome file.
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 06:52.