C Programming | Structure Programming | C++ | Notes | BIM, BSc.CSIT, BCA, BIT, BCIS

Following are the chapter-wise notes on C programming. Chapter 1: Introduction of a C programming For PDF: CLICK HERE Chapter 2: Elements of C A set of characters that are used to form words, numbers, and expressions in C is called a C character set. For PDF: CLICK HERE Chapter 3: Operators and Expression An operator is […]

Web Programming II – Solutions -2017

11. Write a PHP code to perform server-side validation. (Check for empty, alphabets, numbers, email and password length validation) <!doctype html> <html> <head> <title>Year : 2017 | Q : 11</title> </head> <body> <?php function validate($n,$a,$e,$p) { //Checking for empty spaces if($n==”||$a==”||$e==”||$p==”){ echo ‘Empty spaces not permitted’; return false; } //Checking for numbers $regN = “/^[A-Z]+[A-z\s]+[a-z]$/m”; […]