表单,发布和提交按钮

问题描述:

我觉得有点愚蠢地问这个,但我想要每个人的意见。

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.

示例:

编辑|删除

点击编辑,我想让页面重新加载 $ _ POST ['example'] ===编辑 code>或某事。我不想使用 $ _ GET ,我不想使用丑陋的提交按钮。

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.

任何想法?

你应该继续使用提交按钮,但使用CSS来改变它们的外观。
例如:

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;
}