我的页面接收到数据,我用$ _post检索。我显示一些数据,在页面的底部,我的按钮必须将数据保存到mysql。我可以将表单提交到下一页,但是如何访问我使用后检索的数据呢?可以说我有下面的代码(在现实中很多更多的变数。):将数据添加到按钮上的SQL点击
<?php
$v= $_POST["something"];
echo $v;
echo "Is the following information correct? //this would be at the bottom of the page with the buttons
?>
<input type="button" value="submit data" name="addtosql">
我有100个变量要保存。有没有更好的方法? – Newb 2014-09-25 10:38:42
@ Newb.No then use SESSIONS – Jenz 2014-09-25 10:39:39
是否有可能创建所有数据的临时表,然后在下一页将其转移到真正的表? – Newb 2014-09-25 11:00:03