基本的php问题/ dreamweaver,在php页面中显示我们填写的html文本字段 [英] Basic php question/ dreamweaver, show in a php page what we filled in html textfield

查看:105
本文介绍了基本的php问题/ dreamweaver,在php页面中显示我们填写的html文本字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个php和一个html文档,html文档有一个带有textfield的表单,我希望当我点击提交html时,它出现在php页面我在textfield中写的内容。

我在php文档中有这个例子:



I have a php and an html document, the html document has a form with textfield and i want that when i click in submit on html from it appear in the php page what i wrote in textfield.
I have this in php document for example:

<?php
 echo "$name";

 ?>







我已经搜索过,我知道如果我把$ _POST ['name']运行了。

但是我也发现XAMPP中的文件php.bin如果我们改为register_globals值它应该没有$ _POST工作,但是不要知道为什么不工作,有人为什么会这样?



非常感谢!




I already search and i know that if i put $_POST['name'] it works.
But i also discovered that the file php.bin in XAMPP if we change to on register_globals value it should be work without the $ _POST, but dont know why its not working, someone why can be?

Very thanks!

推荐答案

name;

?>
name"; ?>







我已经搜索过我知道如果我把




I already search and i know that if i put


_POST ['name']它可以工作。

但是如果我们改成的话,我也发现XAMPP中的文件是php.bin在register_globals值上它应该没有
_POST['name'] it works.
But i also discovered that the file php.bin in XAMPP if we change to on register_globals value it should be work without the


_POST,但不知道为什么它不工作,有人为什么可以?



非常感谢!
_POST, but dont know why its not working, someone why can be?

Very thanks!


这篇关于基本的php问题/ dreamweaver,在php页面中显示我们填写的html文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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