Dormilich's Profile User Rating: *****

Reputation: 3794 Guru
Active Posts:
11,602 (5.96 per day)
08-June 10
Profile Views:
Last Active:
User is offline Oct 03 2015 02:36 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Dream Kudos:
Expert In:
Icon   Dormilich DÜV core member

Posts I've Made

  1. In Topic: Mail() function not working

    Posted 29 Sep 2015


    Also, when the form loads for the first time, the 'Message not sent' message is displayed.

    that’s what you have coded, if there is no submit element in POST (and that is true for every GET request like a first load), show that message.

    besides that, PHP will emit notices for lines #28 - #30 (which likely are suppressed in your case) on every GET request.


    I have used the php mail() function, and it is not sending the message to the email entered in the textbox.

    mail() isn’t a reliable mail sender. it just hands the mail over to the server’s sendmail binary without any guarantee for sending. additionally, the FROM header is missing, so it’s likely your email is classified as spam.

    the best would be to use a mailing library such as SwiftMailer or PHPMailer, which can send email over SMTP.
  2. In Topic: noob question about function

    Posted 28 Sep 2015

    nope. but your output before the redirects prevents them.
  3. In Topic: noob question about function

    Posted 27 Sep 2015

    after creating cour connection add the following:


    with this PDO will notify you about any problem it encountered on a DB query.

    PS. your redirects will never work.
  4. In Topic: noob question about function

    Posted 27 Sep 2015

    additional issues:

    - relying on the submit button names does not guarantee that the required parameters are set. if your login code—for some reason—contains a btn_register parameter, it will try to (additionally) register the user

    - your SQL queries are totally open to SQL Injection

    - the class keyword should be all lower-case

    - class names should be descriptive and should start with an upper-case letter (by convention)

    - by the same convention, method/property names should start with a lower-case letter

    - since you’re using PDO you should use Prepared Statements

    - never do SELECT *, always be explicit in what you request from the DB

    - in myClass::insert() you pass in variables extracted from $_POST, but never use them (instead you use the POST parameters)

    - the constructor is missing its visibility keyword public (it’s the default, but you can also have private constructors)

    - there is no verification that the injected connection ($myconn) is actually a PDO instance (if it were not, then all your method calls blow up). the easiest way is via type hinting: public function __construct(PDO $myconn)

    - class definitions should not end with ?> (it’s a whitespace issue prevention)
  5. In Topic: noob question about function

    Posted 27 Sep 2015


    my problem is my insert wont insert in the database

    this is a very hard to track problem, mostly due to the use of extract().

    additionally, the redirect won’t work (if you enable error reporting/display you’ll see the "header already sent" notices).

    so. do yourself a favour and drop extract() completely. you cannot reliably tell what parameters there are in $_POST and—most important—you’re open to variable injection. you could for instance set a paramater named "dbConn" and your script would go bonkers.

My Information

Member Title:
Age Unknown
April 18
Behind the Wall
kicking Pardona’s a**(*)
Full Name:
Bertold von Dormilich
Years Programming:
Programming Languages:
JavaScript, PHP, XSLT, Turbo Pascal, BASIC

Contact Information

AIM  Dormilich
Skype  Dormilich


  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    aripalx Icon

    17 Apr 2015 - 02:32
    Thank you for your help!
  2. Photo

    Herman de Vries Icon

    08 Aug 2014 - 12:26
    Thanks a lot for your recent help!
  3. Photo

    EdNolan Icon

    30 Nov 2013 - 15:36
    Many thanks for all the many times you have helped me !!!
  4. Photo

    andrewsw Icon

    02 Aug 2013 - 14:40
    Congratulations on 3000+, a nice big number!
  5. Photo

    raghav.naganathan Icon

    28 Dec 2012 - 04:26 sure are the best in the web development forums!!! :)
  6. Photo

    htmlovin Icon

    16 Oct 2012 - 07:21
    Great help thanks! This guy knows his stuff helping me clear up somethings in html/css
  7. Photo

    AnalyticLunatic Icon

    25 Sep 2012 - 12:48
    Just wanted to stop by and say thanks for that bit about "clear:both" when using floats in HTML/CSS. That solved a long-standing issue I have been having in Firefox! ^^
  8. Photo

    vivian2012 Icon

    17 May 2012 - 12:24
    Hello dear friend,

    Great to communicate with you and to know each other for relationship if you don't mind and have desire to correspond with me,i will appreciate you communication through my email address so that we can get to know more of each other.

    my email is ( )
    vivianwilliams40 at yahoo dot com
  9. Photo

    RudiVisser Icon

    05 Sep 2011 - 04:32
    Thank you! :D
  10. Photo

    RudiVisser Icon

    12 Aug 2011 - 02:35
    Thanks yeah, the session class I have is pretty much like that, but also acts as a singleton and fake session handler! Both get the exact same effect :D
  11. Photo

    aaron1178 Icon

    31 Jul 2011 - 16:50
    Isn't it about time you get a promotion to moderator it think :)
  12. Photo

    codeprada Icon

    26 Apr 2011 - 13:12
    congratz... i gave u ur 900th rep
  13. Photo

    bhoop_computers Icon

    25 Apr 2011 - 19:20
  14. Photo

    Vip3rousmango Icon

    13 Apr 2011 - 07:58
    Thanks for the rep! :) Appreciated.
  15. Photo

    EnvXOwner Icon

    19 Mar 2011 - 10:35
    Hey! I found you on,
  • (2 Pages)
  • +
  • 1
  • 2