Jump to content
Larry Ullman's Book Forums

TikaDlance

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by TikaDlance

  1. I agree with Sharon. I'm having issues with chapt. 6 persues. Having some definitive code to check our work or to even give us helpful hints/answers to explain things would be very beneficial. Rewriting the code part of the persue is frustrating without some guidance to know if you're on the right track or not. While I find this part of the chapters intriguing and challenging, I find myself giving up (with much regret) because I don't really know what I'm doing yet. Same with an answer key to the reviews. While yes the answers are in the chapter preceding it, it would be nice to have an answer key that lets us know that our answers are on the right track. For example, when you ask "why?" as an additional part to a question it would help to know whether we're right or wrong, even if we got the first part of the question right.
  2. Hi Stuart! Thanks for taking the time to explain things to me. Much appreciated. The wording and example is a bit confusing for a newb like me, but let me give it a shot: When we use one equal sign, we're saying that the variable IS that value... say "yes" in this example, which will make the variable always result in being TRUE regardless if the user checks yes or not on the form? But when you use two equal signs, you're comparing the value of the variable to make sure that the value has a value of "yes", so that if a user chooses "no" for example, it will return a FALSE but if they choose "yes" it will return a TRUE? Close?
  3. No problem! Just reimburse me for my involuntary visit to the local psychiatric center and we'll call it even. lol Thanks! Yes, I do actually. Well not "clearly" (lol) but for the most part I understand that "=" isn't "equal to" and that "==" does mean "equal to", and that using one or the other can changes things. But to really grasp exactly HOW it changes things is a little fuzzy in some areas. I think what's making it harder to grasp is when I changed it to one "=" it seemed to work as it should. Crazy stuff. I'm sure if I really sit here and think it through it will become more clear to me though. --------------- P.S. the psych ward visit was $350.00
  4. YAY! That fixed it! Thanks so much! It's been driving me absolutely insane! It makes so much sense now that it's explained. I actually feel like an idiot for not figuring that out on my own. lol I know... I could have just used the original method with no issues, and move on... but noooooo..... I "needed" to get THIS way working simply because it wasn't. lol Many thanks!
  5. I posted this on the web site "errata" page for this book. I keep getting an "undefined index" error when I don't click the "terms" checkbox on the form. But it seemed to work fine when I changed the following: //Validate the terms: if ( !isset($_POST['terms']) AND ($_POST['terms'] == 'Yes') ) { echo '<p class="error">You must accept the terms.</p>'; $okay = FALSE; } to //Validate the terms: if ( !isset($_POST['terms']) AND ($_POST['terms'] = 'Yes') ) { echo '<p class="error">You must accept the terms.</p>'; $okay = FALSE; } So I figured the double equal signs were a typo since it SEEMED to work as it should, but when I posted the "mistake", Larry said that it isn't a typo that he think I must have something wrong with registration form. I looked and looked, and looked.... tried different things (comparing mine to Larry's, taking out tables I added for aesthetics, etc...) and nothing helped fix the problem. So I decided today to try Larry's scripts (the one's he provided for download) instead of mine, and the same error is occurring. What could be the problem?
×
×
  • Create New...