Menu

Valid number error??

Help
2002-09-13
2002-09-26
  • Ken Douglas

    Ken Douglas - 2002-09-13

    hi,
    my platform is win2k with apache 1.3.24 and php 4.2.2 (full).
    when i enter the number of fields and hit next it gives the following error:

    You did not enter a valid number. Please use a number between 1 and 99.

    but, IMHO, this is meaningless because it's real number. probably error is in fields.php on line 234 which is:
    if(!ereg("^([1-9]{1})([0-9]{0,1})$",$fields))

    so what may be the solution?

     
    • ivan lim

      ivan lim - 2002-09-25

      php 4.2 new security settings register_globals=off changes a lot of things
      1) so added  to fields.php
      <?php
      $fields = $_POST['fields'];

      // debug register_globals=off is now the default, so code has to explicitly grab it
      // 2002-09-24

      and gets to the next page.. then probl
      ems there going to the next page ... so explicitly grab those..and go to next one and broke there  etc etc

      2) for some odd reason on my box setting php.ini w/ register_globals=on doesn't fix it either... (see php doc's and security note)

      3) finally got it to create database and the base form w/ buttons but not getting the fields ... grabbing arrays doesn't work .. name1 name2 generated instead of name[] etc...   does the author have a fix?

      4) still working on a way to get the field arrays...

      w2k srv sp3, php4.2.3 win , php.exe

       
    • Musawir Ali

      Musawir Ali - 2002-09-26

      A number of people have complained about such errors on Win2k installations of apache/php/phpFormGenerator . I think we have narrowed it down to being a bad default setting in php.ini . Please continue working on it and let me know if you find a "good" setting for users with this kind of setup. Also, I would like someone to try out the program with IIS+PHP and see if it has anything to do with apache or is it just PHP settings.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.