PHP pre-defined error displaying

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #31
    none, 1 yr extension, 2 yr extension
    now we have the meaning (intention) of the choosable options, but what are the values sent to the server script?

    Comment

    • Matt Morgan
      New Member
      • Oct 2011
      • 41

      #32
      Not really sure, assuming a number(s)?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #33
        and how would you check if something is a number?


        edit: hey, this is my 6,000th post!

        Comment

        • Matt Morgan
          New Member
          • Oct 2011
          • 41

          #34
          Another guess = $number?

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #35
            ? ? ?

            Comment

            • Matt Morgan
              New Member
              • Oct 2011
              • 41

              #36
              I'm not really sure. Error messages shouldn't have '$strlen' is about as far as I'm following, although it's sending numbers, but it shouldn't.

              Comment

              • zorgi
                Recognized Expert Contributor
                • Mar 2008
                • 431

                #37
                Originally posted by Dormilich
                ? ? ?
                Hey Dormilich congratulations on your 6000

                Comment

                • Dormilich
                  Recognized Expert Expert
                  • Aug 2008
                  • 8694

                  #38
                  why shouldn’t it send numbers?

                  Comment

                  • Matt Morgan
                    New Member
                    • Oct 2011
                    • 41

                    #39
                    so it's sending numbers as representations of:
                    none, 1 yr extension, 2 yr extension?

                    Comment

                    • Dormilich
                      Recognized Expert Expert
                      • Aug 2008
                      • 8694

                      #40
                      you wrote the HTML, didn’t you?

                      Comment

                      • Matt Morgan
                        New Member
                        • Oct 2011
                        • 41

                        #41
                        Yes,I know how to write it, just don't understand how it then relates to the functions in PHP.

                        Comment

                        • Dormilich
                          Recognized Expert Expert
                          • Aug 2008
                          • 8694

                          #42
                          your input does not relate to PHP functions (unless I misinterpret the term "relate"). what you have is input (either from $_GET or $_POST […]) and you need to validate these strings by means of PHP function. which function(s) to choose for that purpose depends on what the input is supposed to be. e.g. strlen() gives you the length of the string, if that is a statement you can work with depends on your validation strategy.

                          Comment

                          • Matt Morgan
                            New Member
                            • Oct 2011
                            • 41

                            #43
                            so you're suggesting not having POST and having GET instead?

                            Comment

                            • Dormilich
                              Recognized Expert Expert
                              • Aug 2008
                              • 8694

                              #44
                              it doesn’t matter whether it is $_POST or $_GET, the validation required is the same.

                              Comment

                              • Matt Morgan
                                New Member
                                • Oct 2011
                                • 41

                                #45
                                So if that is all fine, then it is purely the second half of the error messages causing the problems, but I don't know/ understand what to change these to.

                                Comment

                                Working...