表单,发布和提交按钮 [英] Forms, Post and submit buttons

查看:99
本文介绍了表单,发布和提交按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这篇关于表单,发布和提交按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆