Salve ragazzi, non riesco a far usire il valore di <?php echo $id; ?>.
come mai?
codice:<?php session_start(); require_once('lib/Users.class.php'); $login = New Users; ?> <?php if($login->is_logged()) : ?> <div id="contenuti_protetti"> <?php include('connect-db.php'); $numero = $login->get_id(); $result = mysql_query("SELECT * FROM users where id=$numero") or die(mysql_error()); echo "<table border='1' cellpadding='10'>"; while($row = mysql_fetch_array( $result )) { } ?> <form name="modulo" id="modulo" onSubmit="return controllo();" method="post" action="invio.php"> <p><strong>ID: <span class="style1">*</span></strong><BR><input type="text" name="id" id="id" value="2"/> </BR> <strong>Riferimento Mittente: <span class="style1">*</span></strong> <BR><input type="text" name="riferimento" id="riferimento" value="<?php echo $id; ?>"/> </BR> <strong>Telefono Mittente: <span class="style1">*</span></strong> <BR><input type="text" name="cell_1" id="cell_1"/> </form> </div> <?php endif; ?>
come potrei fare?