将表单发送给用户和mysql [英] Send form to user and to mysql

查看:64
本文介绍了将表单发送给用户和mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于创建用户帐户的页面。表格是假定的。成功完成表单后,将用户名和密码发送给用户。但是,它只将信息发送到数据库 - 至少这样做得很好。我已经从页面中包含了代码,以确定是否有人可以告诉我在哪里需要添加$ mailto代码以及具体方法。我见过很多例子,但不是一个带有mysql的php程序员,我不确定是否从应该的东西剪切和粘贴。工作将在这种情况下工作。请查看并告诉我如何将表单通过电子邮件发送给用户的用户名和密码:

添加600行代码作为附件


编写页面的人,或者我应该说从其他页面剪切和粘贴,未能完成将页面发送给用户的分配。但是,生成的页面告诉用户期望他们的电子邮件中的信息。

帮助!


谢谢。



附加文件
(14.0 KB,298 views)


第1点:在你的CODE标签中使用发布所以它更容易阅读。

第2点:使用<?php not<?因为这将在未来的php版本中被删除,这是一个很好的做法,因为<?可以用于XML我相信。


我没有仔细阅读它,只是略读,因为我没有时间经历所有这些... 。然而,你发布的所有代码中都没有mail()函数,那么你如何期望它通过电子邮件发送给某人?


你需要包含一行:

[PHP] mail(to,subject,message); [/ PHP]

阅读更多相关信息这里


当你尝试过并使用正确的CODE标签时,请回来,否则没人会阅读它!



我有一个用于创建用户帐户的页面。表格是假定的。成功完成表单后,将用户名和密码发送给用户。但是,它只将信息发送到数据库 - 至少这样做得很好。我已经从页面中包含了代码,以确定是否有人可以告诉我在哪里需要添加

I have a page that is used to create a user account. The form is "supposed" to send the username and password to the user upon successful completion of the form. But, it only sends the information to the database - at least that''s done well. I''ve included the code from the page to find out if someone can tell me where I need to add the $mailto code and exactly how. I have seen many example, but not being a php programmer with mysql, I''m not sure that cut and paste from something that "should" work will work in this instance. Please look and let me know how to get the form to E-mail the username and password to the user:

600 lines of code added as attachment

The person who wrote the page, or should I say cut and pasted from other pages, failed to complete the assignment of making the page send to the user. However, the resulting page tells the user to expect the information in their E-mail.
Help!

Thanks.

Attached Files
3150950.txt (14.0 KB, 298 views)

解决方案

mailto code and exactly how. I have seen many example, but not being a php programmer with mysql, I''m not sure that cut and paste from something that "should" work will work in this instance. Please look and let me know how to get the form to E-mail the username and password to the user:

600 lines of code added as attachment

The person who wrote the page, or should I say cut and pasted from other pages, failed to complete the assignment of making the page send to the user. However, the resulting page tells the user to expect the information in their E-mail.
Help!

Thanks.

Attached Files
3150950.txt (14.0 KB, 298 views)


Point 1: Use CODE tags in your post so it is easier to read.
Point 2: Use <?php not <? as this will be removed in future php versions and it is good practice as <? can be used for XML I believe.

I didn''t read a lot of it closely, just skimmed because I don''t have the time to sit through all that... However there is no mail() function in all that code you posted, so how do you expect it to email someone?

You need to include a line with:
[PHP]mail(to,subject,message);[/PHP]
Read more about it here.

Come back when you have tried that and use the correct CODE tags or else no one will read it!


I have a page that is used to create a user account. The form is "supposed" to send the username and password to the user upon successful completion of the form. But, it only sends the information to the database - at least that''s done well. I''ve included the code from the page to find out if someone can tell me where I need to add the


这篇关于将表单发送给用户和mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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