Click to See Complete Forum and Search --> : Click a button - show something in another tablecell?


sysdevrd
08-29-2007, 04:51 AM
Hi, I really do not understand this and hope that any of you experts can tell me how to get this working. I'm trying to click a button ("Logg inn") in a table cell and want a php script to be displayed/executed in another cell of the table. Is this possible or do I have to approach this another way? Here's some of my code so far:

//TABLECELL ONE:
<td width="160" height="24" bordercolor="#000000" align="left" valign="top" title="admincell">admincell

<form name="frmAdmin" action="http://www.somewhere.com/foo/a.php" method="post" target="TABLECELL_TWO">

<input type="submit" value="Logg inn">
</form>
</td>


//TABLECELL TWO:
<td bordercolor="#000000" align="left" valign="top" id="TABLECELL_TWO" title="TABLECELL_TWO">maincell

//HERE I WANT THE A.PHP DISPLAYED

</td>

Kind regards
sysdevrd

Fang
08-29-2007, 07:52 AM
The form should be sent to the server and the document returned with the data displayed in the cell.

Alternatively use an iframe in the cell or Ajax to load another or partial document without reloading the document.