PDA

View Full Version : [HTML e PHP] Visualizzare PHP in una tabella HTML


leadergl
24-09-2005, 11:50
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:

<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...

ma se lo testo dal cellulare non si vede niente...oltre ad <iframe...> esiste qualche altro metodo per fal visualizzare i messaggi di tagboard.php nella mia pagina?

leadergl
24-09-2005, 12:12
ho provato anche ad introdurre questo nel codice della mia tabella:

<?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>

ma non mi visualizza niente anche in questo caso...
come si fa?