表单,发布和提交按钮(Forms, Post and submit buttons)

编程入门 行业动态 更新时间:2024-10-26 07:24:52
表单,发布和提交按钮(Forms, Post and submit buttons)

我觉得有点傻问这个,但我希望每个人都有意见。

我想提交一个页面,目标本身,只需按一下按钮,但随身携带一个数据。

例:

编辑| 删除

点击编辑,我希望页面重新加载$_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

本文发布于:2023-07-30 07:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   按钮   Forms   buttons   submit

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!