|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: May 2003
Messaggi: 1113
|
[HTML e PHP] Visualizzare PHP in una tabella HTML
Raga ho un problemino...sto creando un file HTML (o meglio XHTML) che contiene una tabella di 1 colonna e 3 righe con questo contenuto:
Riga 1: contenuto della tagboard Riga 2: inputbox per nome Riga 3: inputbox per messaggio + tasto invio messaggio il tutto lo sto realizzando per farlo visualizzare sul cellulare...adesso il mio problema è questo: 1) se dal cellulare mi collego a http://.../tagboard.php mi visualizza tutti i messaggi scritti nella tagboard 2) se però creo tutta una pagina con la struttura che ho dato prima mi visualizza bene i punti 2 e 3 ma non mi fa vedere i messaggi della tagboard.. Nel mio file, che da normale browser funziona bene, uso questo codice per far visualizzare la tagboard.php all'interno della mia tabella: Codice:
<table width=100 border=1 bgcolor="#FFFFFF" style="border: 1 solid #000000"> <tr><td><iframe name="tag" border="0" frameborder="0" width="500" height="160" align="center" src="http://www.leadergl.net/tagboard/display.php" target="_blank"></iframe></td></tr> ...etc...
__________________
| Athlon XP Barton 3000+ | CoolerMaster HAC-V81 | ASUS A7N8X DELUXE v2.0 | 2*256 PC3200 + 1*512 PC3200 = 1GB DDR400| ATI Radeon 9250 | HD 80Gb Maxtor SATA | Ali Q-TEC 550W Dual Fan GOLD PFC |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: May 2003
Messaggi: 1113
|
ho provato anche ad introdurre questo nel codice della mia tabella:
Codice:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN""
http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>LeaderGL TagBoard</title></head>
<body>
<script language = "JavaScript">
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if(field.value.length > maxlimit){
field.value = field.value.substring(0, maxlimit);
}
else{
countfield.value = maxlimit - field.value.length;
}
}
function showKeyValue(evt) {
var keyValue
if (isNav)
keyValue = evt.which
else
keyValue = window.event.keyCode
if (keyValue == 13) {
javascript:document.tagboard.submit();
}
return false
}
// End -->
</script>
<table border="1" cellpadding="1" cellspacing="2" summary="Cornice">
<thead>
<tr align="left" valign="top">
<td id="th017A0FC80000" height="200">
<p>Tag: <iframe src="http://.../display.php"></iframe></p>
</td>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td headers="th017A0FC80000">
<p>Nome: <input class="cjmsg" maxlength="30" name="name" size="30" /></p>
</td>
</tr>
<tr align="left" valign="top">
<td headers="th017A0FC80000">
<p>Messaggio:</p>
<p><textarea class="cjmsg" cols="30" name="cjmsg" onKeyDown="textCounter(this.form.cjmsg,this.form.rem,200);" onKeyPress="showKeyValue(event)" onKeyUp="textCounter(this.form.cjmsg,this.form.rem,200);" rows="3" type="text"></textarea></p>
<p align="center"><input type="submit" class="cjmsg" value="Invia Messaggio" ></p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
come si fa?
__________________
| Athlon XP Barton 3000+ | CoolerMaster HAC-V81 | ASUS A7N8X DELUXE v2.0 | 2*256 PC3200 + 1*512 PC3200 = 1GB DDR400| ATI Radeon 9250 | HD 80Gb Maxtor SATA | Ali Q-TEC 550W Dual Fan GOLD PFC Ultima modifica di leadergl : 24-09-2005 alle 12:22. |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:22.



















