Form validation script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Form validation script

    here is the form validation script i use for my project. I wanted to port codeigniters but I couldnt implement it to my project, so i made my own. Now I made a standalone version that dont even need any of my scripts. You have readme file in archive. If you find any bugs, pm me. Anything you need just pm me I will be glad to reply and fix it and repost the fixed script.
    NEW VERSIONS BELOW
    Attached Files
    Last edited by mFreak; 18.08.12, 11:00.
    PHP Code:
    $("#mfreak").find(".head brain").clone(); 
    Progress:
    Code:
    [|||___________________________] : 5%
    Output:
    Code:
    Memory limit reached, unable to complete operation.
    Support answer:
    Code:
    Try using a super uber strong mega computer to reach at least 10%.

    #2
    Jeez, I failed with this script. but I had a request so here is the new version of the script. Now the class allows checking arrays other than $_POST by calling Form_validation::load_data_array() like this:
    PHP Code:
    $FV->load_data_array($_GET); // this loads get array but you can load any array 
    . Also I made a script so you can easily check your rule definitions. Hope this helps someone. I espect more requests.
    Attached Files
    PHP Code:
    $("#mfreak").find(".head brain").clone(); 
    Progress:
    Code:
    [|||___________________________] : 5%
    Output:
    Code:
    Memory limit reached, unable to complete operation.
    Support answer:
    Code:
    Try using a super uber strong mega computer to reach at least 10%.

    Comment


      #3
      :D

      The readme file is supr cool :D
      I need some facebook likes, can you please help me
      http://facebook.com/softwarefreakin
      I noticed social media is really powerful
      Well DONE is better than well SAID

      Comment


        #4
        Originally posted by softwarefreak View Post
        The readme file is supr cool :D
        hege, class is the thing here not the outdated readme file :P. So anybody any requests?
        PHP Code:
        $("#mfreak").find(".head brain").clone(); 
        Progress:
        Code:
        [|||___________________________] : 5%
        Output:
        Code:
        Memory limit reached, unable to complete operation.
        Support answer:
        Code:
        Try using a super uber strong mega computer to reach at least 10%.

        Comment


          #5
          can we use this in lava script?

          Comment


            #6
            Originally posted by hi_jakkk View Post
            can we use this in lava script?
            you can use it anywhere. It does not require anything exept php 5
            PHP Code:
            $("#mfreak").find(".head brain").clone(); 
            Progress:
            Code:
            [|||___________________________] : 5%
            Output:
            Code:
            Memory limit reached, unable to complete operation.
            Support answer:
            Code:
            Try using a super uber strong mega computer to reach at least 10%.

            Comment


              #7
              NEW VERSION. You can now fetch errors for only certain field, you only pass field name to new Form_validation::return_field_errors() method. More info about new method and class itself can be found in readme.html . Usage example and script where you can test the rules and class is test.php . And again pm me if you want something added in new version or you want to report a bug.
              Attached Files
              PHP Code:
              $("#mfreak").find(".head brain").clone(); 
              Progress:
              Code:
              [|||___________________________] : 5%
              Output:
              Code:
              Memory limit reached, unable to complete operation.
              Support answer:
              Code:
              Try using a super uber strong mega computer to reach at least 10%.

              Comment

              Working...
              X