473,394 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

repeat password doesnt work

29
Hi i'm trying to create a form wher user has a fields to enter password and then repeat password if password and repeat password doenst match echo error password doesnt match

this is my password and repeat validation code

Expand|Select|Wrap|Line Numbers
  1.  $field = "pass";  //Use field name for password
  2.       if(!$subpass){
  3.          $form->setError($field, "* Password not entered");
  4.       }
  5.  
  6.  
  7.            /* Password error checking */
  8.       $field = "repeatpassword";  //Use field name for password
  9.       if($subrepeat != $subpass){
  10.          $form->setError($field, "* Password do not match");
  11.       }
  12.  
  13.  
  14.  
  15. this are the html form for both
  16.  
  17. <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<?php echo $form->value("pass"); ?>"></td><td><?php echo $form->error("pass"); ?></td></tr>
  18.  
  19. <tr><td>Repeat Password:</td><td><input type="password" name="repeatpassword" maxlength="30"></td><td><?php echo $form->error("repeatpassword"); ?></td></tr>
Apr 22 '10 #1
2 3201
Atli
5,058 Expert 4TB
Hey.

Where are your $subrepeat and $subpass variables coming from?
Apr 22 '10 #2
code green
1,726 Expert 1GB
I think you need to go back and study how to use forms and text boxes,
and to check form submission and how to read text box values.

The code submitted does none of this.
Apr 22 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ian Davies | last post by:
Hello I would like to query the user table of the mysql database from my VB application to check that a user's password entered in a text field on a form corresponds to that users password in the...
4
by: Jefferson Cowart | last post by:
I'm writing a program for a college to use to allow students to register their computers for use on the network. Aside from a bunch of security related checks I would like the program to offer to...
4
by: kthiagar | last post by:
Hi I am trying to connect to a password protected access file from VB.NET. I have no problem in connecting to Access, if I remove the password. This is what I am doing: In the server explorer,...
1
by: Andreas Zita | last post by:
Hi! I have a web service (c# .net 1.1) which is validating some credentials before processing a certain request. Initially I was only encrypting the accual passwordstring such as: ...
3
by: Miro | last post by:
Why Password protect an MDB when someone can google and get a hack? Wondering if anyone else has thought of this and just said "oh well"... I plan to password protect an MDB where I have some...
0
by: phil.jacobs | last post by:
Hi, I am struggling with trying to programatically surf to a https site which requires username and password before showing the site. I am using System.Net.HttpWebRequest: But I dont know how...
0
by: Madni | last post by:
Hi, I have created pdf file using a library "pdflib" in C#.Net development environment.The generated pdf file is password protected (requires "owner password") disallowing some of the...
0
by: ranishobha21 | last post by:
Dear All, I am sending the code below.i have not specifies the host name.i want to send command to server and get the response from it.but it doesnt work.when i connect with the telnet using ssh...
2
by: whitey | last post by:
Hi All, The following script works when username(or email) and password are in 1 table. what i need to know is how to adjust the code to reflect that the email will be held in tbl_email and the...
1
by: itboy1 | last post by:
hii i have a question regarding password strength in asp.net using c#. i have made a page where i have put password field but i dont have idea about password strength. like password is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.