Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Necuima last won the day on April 24 2020

Necuima had the most liked content!

Community Reputation

18 Good

About Necuima

  • Rank
    Advanced Member

Recent Profile Visitors

1691 profile views
  1. Hi Nootkan, The issue that I am trying to help you with is the definition of the PHP variables whose names start with $color_ For example, unless $_POST['color'] == 'red') is true, the PHP variable $color_red will not get set. But you try and use it in the print statement whether it is defined or not. But you are better off following Larry's guidance and set just one $color variable. Cheers
  2. if the color is not red, then $color_red is not getting defined. You need something like: $color_red = ""; $color_yellow = ""; $color_green = ""; $color_blue = ""; Up front before you do the tests so that the variables are defined even if they are empty.
  3. Hi, You have a problem with the double quotes in your final print statement. Your first statement will end at the color:red unless you escape the double quotes around that style or use single quotes at that point. Cheers, Necuima
  4. OK, if you look in "browse" for the PHP6 book it is the latest post in that topic. Sorry, it is under my name.
  5. It looks like you have created the database but have you created the tables? Cheers, Necuima
  6. So glad that you got it to work for you. As mentioned, it has always worked flawlessly for me, both in my development environment and in production. Best wishes, Necuima
  7. Hi Jai, Mr Ullman has a great book on e-commerce - "Effortless E-Commerce" - 2nd edition with PHP and MySQL. Cheers
  8. Hi, I am sorry but I don't think that I can help you with this but I did notice "Username and Password not accepted" - did you check out the link at the end of that message? I use my Internet login details with my service provider and have never had a problem. These details may or may not be the same as your email address. Hope it helps.
  9. I do not use a proxy server. And my statement that you need to be logged in to your email service may be a bit mis-leading. You need to be logged in to the Internet with your service provider.
  10. Ok, the following is how I send emails from PHP. Uses PHPMailer. In XAMPP you need to tell it where your normal email connection is. $host = substr($_SERVER['HTTP_HOST'], 0, 5); if (in_array($host, array('127.0', '192.1', 'local'))) { $local = TRUE; // echo "Local is true, HOST is $host"; } else { $local = FALSE; // echo "Local is false, HOST is $host"; } if ($local) { // tests for using XAMPP locally ini_set('sendmail_from', 'your email address'); // needed for Win 10 localhost (Development) ini_set('SMTP', 'your email service SMTP server'); // needed for Win
  • Create New...