Display calculating result in the same page
Posted
by garcon1986
on Stack Overflow
See other posts from Stack Overflow
or by garcon1986
Published on 2010-06-01T08:45:54Z
Indexed on
2010/06/01
9:23 UTC
Read the original article
Hit count: 204
Hello,
I have a table in my php code. In the second column of the table, normally it displays "---", and after i click the submit button, it will display the calculating result in the same page.
For example,
<table>
<tr><td>1</td><td>---</td></tr>
<tr><td>2</td><td>---</td></tr>
<tr><td>3</td><td>---</td></tr>
</table>
And in the same page, it should receive the variables
$var1 = $_POST['variable1'];
I'm not sure which way to use, ajax or javascript or just css?
Do you have any ideas?
Thanks
© Stack Overflow or respective owner