使用php将html表单数据保存到txt文件中

您所在的位置:网站首页 html表单数据保存到txt 使用php将html表单数据保存到txt文件中

使用php将html表单数据保存到txt文件中

2024-05-24 18:06| 来源: 网络整理| 查看: 265

百度翻译此文   有道翻译此文 问题描述

I am new to PHP and struggling,I have an HTML form kind of login form,I want to store that input values from html form to a txt file,These all files are hosted on free hosting site(i made it for learning purpose).I have tried lots of threads to achieve that but none of them worked for me till now.So can anyone please help me,I have tried as in code.whihc is not working

AN HTMl form,a php code file and a txt file,Three of them are hosted on a free web hosting 000webhost.

Please enter your information to create a new login account

Login Name: Password:

php file

I have uploaded data.txt already.

推荐答案

This is most likely a permission issue. Check write permission with is_writable or enable error output with ini_set('display_errors', true);

Change permissions for data.txt accordingly.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3