ok grazie per la risposta fermat
ho fatto come hai detto ho scaricato il file dal sito e l'ho inserito nel mio spazio web ora però come posso richiamare l'immagine del codice a barre generato?
questo è il mio codice:
Codice PHP:
<?php
if(isset($_POST['Tessera'])) {
$dbhost = 'localhost';
$dbuser = '';
$dbpass = '';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(! $conn ) {
die('Could not connect: ' . mysql_error());
}
if(! get_magic_quotes_gpc() ) {
$Tessera = addslashes ($_POST['Tessera']); $Codice_agenzia = addslashes ($_POST['Codice_agenzia']); $Agenzia = addslashes ($_POST['Agenzia']);
$Nome = addslashes ($_POST['Nome']);
$Cognome = addslashes ($_POST['Cognome']);
$Codice_fiscale = addslashes ($_POST['Codice_fiscale']);
$Codice_cliente = addslashes ($_POST['Codice_cliente']);
$Indirizzo = addslashes ($_POST['Indirizzo']);
$Comune = addslashes ($_POST['Comune']);
$Data_di_nascita = addslashes ($_POST['Data_di_nascita']);
$Indirizzo_email = addslashes ($_POST['Indirizzo_email']);
$Telefono = addslashes ($_POST['Telefono']);
$Username = addslashes ($_POST['Username']);
$Password = addslashes ($_POST['Password']); $Conferma_password = addslashes ($_POST['Conferma_password']);
}else {
$Tessera = $_POST['Tessera']; $Codice_agenzia = $_POST['Codice_agenzia']; $Agenzia = $_POST['Agenzia'];
$Cognome = $_POST['Cognome'];
$Nome = $_POST['Nome'];
$Codice_fiscale = $_POST['Codice_fiscale'];
$Codice_cliente = $_POST['Codice_cliente'];
$Indirizzo = $_POST['Indirizzo'];
$Comune = $_POST['Comune'];
$Data_di_nascita = $_POST['Data_di_nascita'];
$Indirizzo_email = $_POST['Indirizzo_email'];
$Telefono = $_POST['Telefono'];
$Username = $_POST['Username'];
$Password = $_POST['Password']; $Conferma_password = $_POST['Conferma_password'];
}
$sql = "INSERT INTO Profilo ". "(Tessera, Codice_agenzia, Agenzia, Cognome, Nome, Codice_fiscale, Codice_cliente, Indirizzo, Comune, Data_di_nascita, Indirizzo_email, Telefono, Username, Password, Conferma_password)"." VALUES('$Tessera', '$Codice_agenzia', '$Agenzia', '$Cognome','$Nome','$Codice_fiscale','$Codice_cliente', '$Indirizzo', '$Comune','$Data_di_nascita','$Indirizzo_email','$Telefono','$Username','$Password','$Conferma_password')";
mysql_select_db(''); $retval = mysql_query( $sql, $conn );
if(! $retval ) {
die('Could not enter data: ' . mysql_error());
}
echo '<div align="center" style="width:1000px;height:900px;-webkit-border-radius: 0px;-moz-border-radius: 0px; margin-left: 130px;border-radius: 0px;background-color:#FFFFFF;-webkit-box-shadow: #B3B3B3 8px 8px 8px;-moz-box-shadow: #B3B3B3 8px 8px 8px; box-shadow: #B3B3B3 8px 8px 8px;"><table><tr><td><img src="logo_glamour.png" style="width:250px; heigth:50px; margin-right:230px;"></td><td align="center">Modulo attivazione - carta</td><td> codice a barre</td> // QUI DEVO VISUALIZZARE L'IMMAGINE</tr></table><fieldset><legend>DATI ANAGRAFICI - AZIENDA</legend><table><tr>
<td>Codice azienza:<input type="text" value=""></td>
<td>Tessera
<input type="text" value=""></td>
<td>Agenzia
<input type="text" value=""></td><td><br><br></td></tr>
</table>
</fieldset>
<fieldset>
<legend>DATI ANAGRAFICI - UTENTE </legend>
<table>
<tr>
<td><p>Codice cliente
<input type="text" value=""></p></td>
<td><p>Cognome
<input type="text" value=""></p></td>
<td><p>Nome
<input type="text" value=""></p></td>
<td><p>Codice fiscale
<input type="text" value=""></p></td>
</tr>
<tr>
<td><p>Indirizzo
<input type="text" value=""></p></td>
<td><p>Comune
<input type="text" value=""></p></td>
<td><p>Telefono
<input type="text" value=""></p></td>
<td><p>Email
<input type="text" value=""></p></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>CREDENZIALI - UTENTE </legend>
<table>
<tr>
<td><p>Username
<input type="text" value=""></p></td>
<td><p>Password
<input type="text" value=""></p></td>
</tr></table></div>';
mysql_close($conn);
}else {
?>