在进入下一页帮助之前注册密码确认 [英] password confirmation in registration before proceeding to the next page help

查看:135
本文介绍了在进入下一页帮助之前注册密码确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

	include ('connection.php');



if (isset($_POST['register']))

	{

		$vpassword = $_POST['zpassword'];
		$vconfirmpassword = $_POST['cpassword'];

			if ('vpassword' == 'vconfirmpassword')

				 {

				$vfirst = $_POST['first'];
				$vmiddle = $_POST['middle'];	
				$vlast = $_POST['last'];
				$vcourse = $_POST['course'];
				$vlevel = $_POST['level'];
				$vschoolid = $_POST['schoolid'];
				$vpassword = $_POST['password'];

				mysql_select_db($db,$conn);
				$query = "insert into schoolid_tbl (`firstname`,`lastname`,`course`,`level`,`schoolid`,`password`) values ('$vfirst','$vlast','$vcourse','$vlevel','$vschoolid','$vpassword')";
				mysql_query($query);

				header('location:home.php?msg="registered"');

				}

	}


?>



____________________________________________________________________________



我的计划是,在提交记录之前,注册时的密码应与确认密码相匹配保存在表格中,然后继续下一页



NEWBIE HERE :)

自学...

教我如何请....

抱歉我的英语不好...

如果我有不良来源^^


____________________________________________________________________________

what my plan is the password in registration should match to the confirm password before submiting the record to save in tables and before proceeding to the next page

NEWBIE HERE:)
self studying ...
teach me how please ....
sorry for my bad english ...
and if i have bad source ^^

推荐答案

_POST [' register']))

{

_POST['register'])) {


vpassword =
vpassword =


_POST [' zpassword'];
_POST['zpassword'];


这篇关于在进入下一页帮助之前注册密码确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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