Display calculating result in the same page
- by garcon1986
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