Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Form PHP... scusate la mia ignoranza

    Salve ragazzi vengo per chiedervi un favore:
    Sto realizzando un banale form che in una pagina iserisci i dati nell'altra te li mostra... ma non funge!

    Vi posto il codice delle due pagine:

    Codice PHP:
    <!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 http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Documento senza titolo</title>
    </head>



    <body><form method="post" action="fatture.php">
    <table width="50%" border="1" cellpadding="4" cellspacing="0" bordercolor="#000000">
      <tr>
        <td><div align="right">
          
            Numero Documento:
              <input type="text" name="ndoc" />
        
          </div></td>
      </tr>
      <tr>
        <td><div align="right">Data Documento:
            <input type="text" name="textfield2" />
    </div>
       </td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
      </tr>
      <tr>
        <td><div align="right"></div></td>
      </tr>
    </table>  <INPUT type="SUBMIT" value="Invia">
    </form>

    <? $ndoc=$_POST['ndoc']; ?>

    </body>
    </html>

    e la seconda:

    Codice PHP:
    <!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 http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Documento senza titolo</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .Stile1 {font-family: Arial, Helvetica, sans-serif}
    -->
    </style>
    </head>



    <body>
    <div align="right" id="all1">
      <table width="30%" border="0" cellpadding="4" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
          <td valign="top"><p class="Stile1">Address:</p>
          
          </td>
        </tr>
      </table>
    </div>
    <div align="left" id="all">
      <table width="35%" border="1" cellpadding="4" cellspacing="0" bordercolor="#000000">
      <tr>
        <td colspan="3"><div align="center">INVOCE</div></td>
        </tr>
      <tr>
        <td colspan="2">Document number: <?php echo $ndoc?></td>
        <td width="50%">Document Date:  </td>
      </tr>
      <tr>
        <td width="34%">Client Code:  </td>
        <td width="16%">Page: </td>
        <td>Currency: </td>
      </tr>
      <tr>
        <td colspan="3">VAT code / Fiscal code:  </td>
        </tr>
    </table>
    </div>
    </body>
    </html>
    Per ora sto testando soltanto il primo campo...

    Spero mi aiuterete

  2. #2

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 © 2024 vBulletin Solutions, Inc. All rights reserved.