PHP表单,不需要提交按钮 [英] PHP form that doesn't require a submit button

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

问题描述

是否可以在不使用php表单的情况下发送信息,即表示您将表单中的信息作为一种可以自动发布而无需等待用户输入的消息?


注意:这与我的任何其他帖子无关


在此先感谢,任何帮助表示赞赏

is it possible to send information without having to use a php form i.e. say the information that you would put in the form is made as a sort of message that can be posted automatically without waiting for user input??

Note: this is not related to any other post by me

Thanks in advance, any help is appreciated

推荐答案

没有什么叫做phpform,顺便说一下,我无法理解你的意思。甚至不接近它..


您希望在没有用户输入的情况下提交表单吗?那你为什么需要提交表格呢?如果您希望在不单击任何按钮的情况下提交表单,则只要输入框获取某些数据,就可以使用事件执行此过程。验证数据(使用js + ajax),当最后一次输入时,检查其他数据(对于有效数据是必需的)并使用ajax处理数据。


你想要什么的模糊概念..


希望这有助于

欢呼!!
There is nothing called phpform and btw i couldn''t understand what you mean to say. not even near to it ..

You want the form to be submitted without user input ? then why do u need the form to be submitted. If you want the form to be submitted without clicking on any button, then you can perform this process using events, as soon as the input boxes are getting some data. Validate the data (using js+ajax) and when the last gets inputed, check the other ones (which are mandatory for valid data) and process the data using ajax :)

that was the vague idea of what u wanted ..

hope this helps
cheers !!


好的我会尝试更好地解释一下;


我知道一个html可以将信息发布到.php页面我无论如何都会使用它来发布信息来发布信息。通过字符串将某些变量发送到另一页的php页面。


希望这更有意义


谢谢,
Ok i will atempt to explain it a bit better;

I know that a html from can post information to a .php page i use it regurly anyhow what i what is to be to post information from a .php page that is send certain varibles through a string to this other page.

Hope this makes more sense

Thanks,



好​​的我会尝试更好地解释一下;


我知道一个html来自可以发布信息到一个.php页面我无论如何我会用什么来发布从.php页面发送信息的信息,该页面通过一个字符串将某些变量发送到另一个页面。


希望这更有意义


谢谢,
Ok i will atempt to explain it a bit better;

I know that a html from can post information to a .php page i use it regurly anyhow what i what is to be to post information from a .php page that is send certain varibles through a string to this other page.

Hope this makes more sense

Thanks,



使用表格标签内的隐藏字段或使用cookies,会议,无论你觉得什么都好......


欢呼!!

use hidden fields inside form tag or use cookies, sessions whatever u feel is good ..

cheers !!


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

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