Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Ciao

  1. #1
    Utente bannato
    Registrato dal
    Jun 2008
    Messaggi
    60

    Ciao

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Untitled 1</title>
    </head>

    <body>





    <input name="Text1" type="text" value="www.html.it" /></p>
    <form method="post">
    <?php
    echo '<input height="181" name="Image1" src="http://127.0.0.1/' . md5($_POST['Text1']) . '.png" type="image" width="268" />';

    ?>
    </form>

    </body>
    </html>

    Non riesco a caricare questa img come mai mi esce questo errore?

    Notice: Undefined index: Text1 in C:\Program Files\EasyPHP 2.0b1\www\Untitled_1.php on line 15

    La text come si vede ha nome Text1 e quindi dove sta l`errore inoltre l`immagine che dovrebbe aprire e` presente sul server e correttamente salvata

  2. #2
    Input Text1 è fuori dal form

  3. #3
    Utente bannato
    Registrato dal
    Jun 2008
    Messaggi
    60

    ok

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Untitled 1</title>
    </head>

    <body>





    <form method="post">
    <input name="Text1" type="text" value="www.html.it" /></p>
    <?php
    echo '<input height="181" name="Image1" src="http://127.0.0.1/' . md5($_POST['Text1']) . '.png" type="image" width="268" />';

    ?>
    </form>

    </body>
    </html>

    Ok ma adesso per far si che esca l`img devo spingere invia dopo aver scritto l`indirizzo come posso evitare lo spingere invia ed avere appena aperta la pagina gia l`img caricata?

  4. #4
    Hai posto il quesito 1000 volte e già ti è stato risposto per l'invio automatico del form devi usare javascript o con l'evento onload (nel tag body) o con onchange (sul campo di input)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.