Jump to content
Larry Ullman's Book Forums

Gardacus

Members
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Gardacus

  • Rank
    Member
  1. All, I found a nice working way. In the time between posting my question and this answer, I started learning javascripting. Not too far yet, but it gave me some eureka moments. The form now consists of this code, and gets its values from the database: echo '<input type="text" size="11" name="impru_acc" id="impru_acc" value = '.$impru_acc.'>'; echo '<input type="text" size="11" name="impru_rest" id="impru_rest" onchange="calculateAll(this.value)" value = "">'; echo '<input type="text" size="11" name="impru_sold" id="impru_sold" value = '.$impru_sold.'>'; e
  2. I am using the wonderful onkeyup argument to auto update values in forms. I have a question though. Example: I have five values. Loan, Terms, Saldo, Payment, Interest The form is built up that it gets its data from a database. The Loan, Terms and Interest rate will be entered as a default value to handle the rest of the terms, payment and saldo. example: loan = 1000, terms = 12 Interest = 215 Saldo = Loan = 1000 The form will be filled in as an overview of payments and saldo, to check how much money still needs to be paid. For the next entry, the term will count down 1, an
  3. Hello HartleySan I will add some answers and comments to yours 1. These are the (existing) systems I want to make inquiries in: Sidecode 4 (XX-99-XX) Sidecode 5 (XX-XX-99) Sidecode 6 (99-XX-XX) Sidecode 7 (99-XXX-9) Sidecode 8 (9-XXX-99) Hence the flexibility I am searching for in creating the begin and end point. 2. No, no reason, it is an adjusted array of one of Larry's scripts 3. That's why I want to be the first 4. Yes I have legit access, but these things are all besides the point. I have java scripts available, but first things first. as answers to your ) - num
  4. Hey HartleySan Thank you so much for looking with me Yes, more or less Except we're limited to these letters: $letter = array (1 => 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'N', 'P', 'R', 'S', 'T', 'X', 'Y', 'Z'); All others are not necessary. All digits are possible. This is just one of the many series of possible combinations Example... currently we are at 1 digit - three letters - 2 digits (9-xxx-99). So I was trying to create a script that I can easily apply to all kinds of possible (and future) ranges Thanks Mike
  5. Hi guys I have a new challenge. Short intro. I am from Holland. In Holland we have a car license plating system that links a license plate to a car. And looking up a license plate, can show the known data of that car (technical info, not personal) There are a bunch of sites where you can get the data for one car at the same time. I am thinking to build a site where I can draw information for a whole range of license plate numbers at once. I don't know if I should create an array or another means to create the range. Example at one time, the numbering on our license plat
  6. Hi all I am not sure if this topic exists or where to place it, so please forgive me if I posted this on the wrong site. I am looking for a smart (PHP preferred) solution to redirect mobile devices to a mobile version of a website. At this moment this is my javascript solution, but it is not fool-proof: <script type="text/javascript"> if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1) || (navigator.userAgent.indexOf('Blackberry') != -1) || (navigator.userAgent.indexOf('
  7. Hello HartleySan It's a bit of work, but it will safe me a lot of problems later indeed. Thanks again Holland or The Netherlands is kind of used randomly, but I notice that in the "spoken" language, Holland is more used than "The Netherlands" In official writing I would say The Netherlands is mostly used. Though "The Netherlands" is the official English translation. "Holland" is an old term actually, and nowadays in Dutch only used in the name of 2 provencies: North-Holland (Noord-Holland) and South-Holland (Zuid-Holland) This site may explain a bit more: http://www.archimon.nl
  8. Hello HartleySan Thanks for your response. I did figure out a workaround, which is actually commonly used here in Holland. I just did not realize. What most web builders seem to do is make an extra column for these prepositions and ask the users to put them in there and the last part of the last name to enter as last name. I have to correct about 100 last names, but it makes my life eventually a lot easier. Thank you again. Regards Mike
  9. Hello all I am still working on the login script from this book, and implementation on my own site works very very well At the moment I am strugling with our last-name convention here in Holland We have names like "van der Vaart", "de Wit" and "in 't Groen" and more alike. The current script does not take this into account and puts them in alphabetical order. So all the "van" and "de" names are in one row. Here in Holland it is therefore customary to split the last name like this: "Vaart, van de", "Wit, de" and "Groen, in 't" But of course we also have singular-word last names, lik
  10. Larry, you're welcome Glad I can do something in return! You're a great teacher and I love reading and learning from your books! Thanks again Mike
  11. Larry I found this and added it in the header file of the login script: if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() === 1){ $_POST = array_map( 'stripslashes', $_POST ); $_GET = array_map( 'stripslashes', $_GET ); $_COOKIE = array_map( 'stripslashes', $_COOKIE ); } It seems to do the trick... as I need this on more locations (us Dutchies are like the French with our apostrophs hahaha) Mike
  12. Hi Larry Thanks for your answer (and your wisdom!!!) That's going to be a challenge... I will have to find a workaround for this, as I am running the scripts from a hosted site, in which I cannot change anything in the php.ini. I will snoop around Mike
  13. Hi Paul Thanks for your help! Unfortunately the result remains the same. But I have no idea why... So even with your code, it still show in \'t Groen Plus The fact that the apostroph is not accepted by the preg_matching I guess... what else would stop it? I am not even injecting it yet in the database. What I mean is, the rest of the original register.php as written in Larry's book, checks if you enter a first name, last name, email address and twice your password. So forgetting either of those, will fill in the already entered info and warn you about the wrong or forgotten ones.
  14. Hi everyone. I am running into a problem at the register.php script I am from Holland and in both our city names as in first and last names, apostrophs and other punctuation marks are used. For intance 's-Gravenhage is the official name of The Hague. Or a common last name is In 't Groen The script does not seem to allow this, because it keeps returning that I need to enter a valid last name. the code is: // Trim all the incoming data: $trimmed = array_map('trim', $_POST); // Assume invalid values: $fn = $ln = $e = $p = FALSE; ---------- // Check for a last name
  15. Hahaha... no problem at all.. I am still just a beginner, and Larry's books are helping a lot. And I love the way this forum works! Great inspiration and great helpers! Thanks again
×
×
  • Create New...