我觉得有点傻问这个,但我希望每个人都有意见。
我想提交一个页面,目标本身,只需按一下按钮,但随身携带一个数据。
例:
编辑| 删除
点击编辑,我希望页面重新加载$_POST['example'] === "edit"或其他东西。 我不想使用$_GET而且我不想使用丑陋的提交按钮。
有任何想法吗?
I feel a little silly asking this but I wanted everyones opinion on it.
I want to submit a page, target itself, on the press of a button but carrying one piece of data with it.
Example:
Edit | Delete
On the click on edit, I want the page to reload with $_POST['example'] === "edit" or something. I don't want to use $_GET and I don't want to use the ugly submit button.
Any ideas?
最满意答案
您应该继续使用提交按钮,但使用CSS来改变它们的外观。 例如:
<input class="aslink" type="submit" /> .aslink { background: transparent; border: none; cursor: pointer; text-decoration: underline; }You should probably go ahead and use submit buttons, but use CSS to change how they look. For example:
<input class="aslink" type="submit" /> .aslink { background: transparent; border: none; cursor: pointer; text-decoration: underline; }更多推荐
want,edit,电脑培训,计算机培训,IT培训"/> <meta name="description" c
发布评论