我有过
<form name="feedback" method="post" onsubmit="return checkform()" action="engine.php?ad=">
我需要将一个变量附加到
engine.php?ad=
,它是
php中的<?=$_GET['page'];?>
(使用下面的代码将URL参数传递到下一个页面)。
我该如何添加它呢?
如果需要,我也可以用javascript编写它。
发布于 2010-05-06 17:26:56
如下所示:
<form name="feedback"
method="post"
onsubmit="return checkform()"
action="engine.php?ad=<?php echo htmlentities($_GET['page']); ?>">
https://stackoverflow.com/questions/2783078
复制