Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1
    Utente di HTML.it L'avatar di ade_v
    Registrato dal
    Jan 2001
    Messaggi
    460

    Mancato Passaggio Variabili ???????

    Perchè a video non ottengo niente ?
    Mi sto scervellando da ore ma non ne vengo a capo


    <html>
    <head>
    <title>titolo<title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <form name="miaform" method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?> ">

    user: <input type="text" name="text1">
    password: <input type="text" name="text2">
    <input type="button" name="submit" value="submit">

    </form>

    </body>
    codice:
    <?php
    if (isset($_POST['submit'])) {
    echo "OK";
    }
    else {
    echo "KO";
    }
    ?>
    </html>
    ade_v@yahoo.it

    Fletto i muscoli e sono nel vuoto

    Se inviate messaggi privati, avvisatemi sul forum...

  2. #2
    Utente bannato
    Registrato dal
    Jul 2005
    Messaggi
    169
    <html>
    <head>
    <title>titolo<title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <form name="miaform" method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?> ">

    user: <input type="text" name="text1">
    password: <input type="text" name="text2">
    <input type="button" name="submit" value="submit">

    </form>

    code:
    <?php
    if (isset($_POST['submit'])) {
    echo "OK";
    }
    else {
    echo "KO";
    }
    ?>

    </body>
    </html>

  3. #3
    Utente di HTML.it L'avatar di ade_v
    Registrato dal
    Jan 2001
    Messaggi
    460
    Anche spostando il tag </body> non è cambiato nulla....
    ade_v@yahoo.it

    Fletto i muscoli e sono nel vuoto

    Se inviate messaggi privati, avvisatemi sul forum...

  4. #4
    Utente di HTML.it L'avatar di nicola75ss
    Registrato dal
    Nov 2004
    Messaggi
    12,923
    Ho fatto un copia incolla e anche io ottenevo una pagina vuota.
    Poi ho inserito solo il codice html e lo script php in una pagina di dw lasciando il codice con l'head, l'html e il body già generato e si vede. Poi che lo script funzioni è un'altro discorso.

  5. #5
    Utente di HTML.it L'avatar di ade_v
    Registrato dal
    Jan 2001
    Messaggi
    460
    OK. non si vede nulla perchè non avevo chiuso il tag </title>
    PERO' perchè ottengo sempre e solo la scritta KO ??????

    <html>
    <head>
    <title>titolo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <form name="miaform" method="POST" action="j.php">

    user: <input type="text" name="text1">
    password: <input type="text" name="text2">
    <input type="button" name="submit" value="submit">

    </form>


    <?php
    if (isset($_POST['submit'])) {
    echo "OK";
    }
    else {
    echo "KO";
    }
    ?>
    </body>
    </html>
    ade_v@yahoo.it

    Fletto i muscoli e sono nel vuoto

    Se inviate messaggi privati, avvisatemi sul forum...

  6. #6
    immagino che codesta pagina sia chiamata j.php
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  7. #7
    Utente di HTML.it L'avatar di luca200
    Registrato dal
    Apr 2002
    Messaggi
    4,120
    Come fai a inviare il modulo?

  8. #8
    Utente di HTML.it L'avatar di ade_v
    Registrato dal
    Jan 2001
    Messaggi
    460
    In poche parole il tasto submit non va...

    file: j.php

    <html>
    <head>
    <title>titolo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <form name="miaform" method="POST" action="k.php">

    user: <input type="text" name="text1">
    password: <input type="text" name="text2">
    <input type="button" name="submit" value="submit">

    </form>
    </body>
    </html>

    *************************************************

    file k.php

    <?php
    if (isset($_POST['submit'])) {
    echo "OK";
    }
    else {
    echo "KO";
    }
    ?>
    ade_v@yahoo.it

    Fletto i muscoli e sono nel vuoto

    Se inviate messaggi privati, avvisatemi sul forum...

  9. #9
    Utente di HTML.it L'avatar di ade_v
    Registrato dal
    Jan 2001
    Messaggi
    460
    Schiacciando i tasto submit, qualcosa dovrebbe succedere, vero?
    il browser non si muove. ma il contenuto del tag <form> è corretto?
    ade_v@yahoo.it

    Fletto i muscoli e sono nel vuoto

    Se inviate messaggi privati, avvisatemi sul forum...

  10. #10
    Utente di HTML.it L'avatar di ade_v
    Registrato dal
    Jan 2001
    Messaggi
    460
    Lo sapevo che mi stavo spaccondo il cranio per niente !
    dovevo scrivere

    <input type="submit" name="submit" value="submit">

    e non

    <input type="button" name="submit" value="submit">


    mannaggia !!!!!
    ade_v@yahoo.it

    Fletto i muscoli e sono nel vuoto

    Se inviate messaggi privati, avvisatemi sul forum...

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.