I think I can figure out the code for this but I am having a very hard time getting past the first step. Any suggestions are greatly appreciated.
What I need to do is take a 9 digit account number (for an electrical bill) and 1) determine if it is a valid account using the check digit, and 2) determine the type of account it is (ie if the 2nd digit is a 4, its a residential account).
Suppose the account is 123456789 and I need to add the 3rd, 5th, 7th, and 9th digits, how to do I extact the digits so they can be worked with? All I can think of is to do something like this:
cout << "enter the third digit of your account"
cin >> digit3 >> endl;
cout << "enter the fifth digit..."
cin >> digit5 >> endl;
and so on...
total = digit3 + digit5 + digit7 + digit 9
Its obviously not practical to have the user enter their account number one digit per line as I am doing But how else do it make the account number into something I can manipulate?
I am a beginner. And not a very smart one, obviously :(
Server side $_SESSION
how does one keep the session completely server side. no cookies to the browser at all. i need this site to be cookie and jscript free.
New Search Engine problem
Hey everyone,I have a ZIP Code Radius search engine already functional. it displays all of the ZIP codes within a specified mileage around a central ZIP code.I have an auction site that the client
Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u can see how many people are currently logged in and also how many people in total (including the ones
Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and string function don't seem to work because they consider the Greek alphabet letters as part of the A-Z
values in array being escaped
I would like to submit some values - back to the same form for checking before processing...Code: [Select]<FORM method="post"><table width="500px"
Code error with Index.php
Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/runevid/public_html/index.php on line 25<html><head><title>CrazyQuest -
Can't find the problem (no error message)!
OK, here's the deal. This code is really weirdly formatted (sorry!) and hard to understand, so I'm going to try and make it as easy as possible. Here's a breakdown of what the user should do:1. The
Add code to enable passing of checkbox variable on login
Ok, I have a login page, but want to add a checkbox that when checked and successful login is made it passes the checkbox value (checked = "Yes" to the next page) which then loads password
.htpasswd Registration Form
Hi,I wanted to make an htpasswd registration form.I found this code on the internet but have no idea how to use it.Can anyone help?<?php// Register Userfunction regUser() { $filename
Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a new user when I'm not logged in. It should redirect me back to the login page but I get this