Hello I'm working on this final project. I need to create an ATM program with a unique pin code. However every time I run the p I have done 3 hours of researching and I've decided to just ask. What am I doing wrong that it's just running the do while 3 times whenever I enter a 4 digit pin? void Pin() { do { printf("\n\t Please enter your 4 digit PIN \n "); scanf_s("%[^\n]\n", &pin); *Count = *Count + 1; if (*Count >= 3) { printf("Sorry you can't continue, contact your bank for assistance!\n"); } }while(strlen(pin) != 4 && …

Member Avatar
Member Avatar
+0 forum 4

I have the following code. I wanted to determine if the value inputted in $cellno (from a textbox) are all digits (numbers), and if it's 11 numbers, and if its starting numbers are "09". One correct value example is 09345678910. It is all numbers, has 11 digits, and begins in 09. By the way, I got this error upon executing my code: Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\GWS\cusdet.php on line 26 Please help!!! Super, super, duper newbie here. :( Thanks in advance!! <input id="cellno" type="text" placeholder = "Enter Cellphone Number" size = "20"> <?php $cellno = document.getElementById('cellno').value; $corcellno …

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm having a little problem with a password Reset Script I've made The script sends you a reset hash to your email to confirm that you requested the password reset. This resethash is just a random string with letters and numbers that is 15 chars long Problem is, when I verify if it is 15 chars long, the script is telling me it isn't [CODE] // ... $hash = $_GET['hash']; if(strlen($hash) == 0) { $msg[] = "Hash Field is empty !"; } elseif(strlen($hash) !== 15) { $msg[] = "Hash is invalid !"; } if(count($msg) == 0) { // .... …

Member Avatar
Member Avatar
+0 forum 7

The End.