Menu

php form generator....HELP

Help
2003-03-31
2003-04-03
  • marko markmann

    marko markmann - 2003-03-31

    hi,

    i install "php form generator" on my php nuke portal

    i create with it one formular

    i make a link to  my navigation like this:
    http://www.myurl/uml.php?form=/phpform/forms/form1.html
    ---------------
    uml.php is in the root und contain this :

    <?php

    if (!isset($mainfile)) { include("mainfile.php"); }

    $index = 0;

    include("header.php");
    opentable();
    include ($form);
    closetable();
    include("footer.php");

    ?>
    -------------
    but when i click on the link in the navigation i got these errors:

    Warning: main() [function.main]: open_basedir restriction in effect. File(../html) is not within the allowed path(s): (/www/htdocs/--------/) in /www/htdocs/-------/uml.php on line 10

    Warning: main(html) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/--------------/uml.php on line 10

    Warning: main() [function.main]: Failed opening 'html' for inclusion (include_path='.:..') in /www/htdocs/--------/uml.php on line 10

    line 10 is how you can see
    include($form);

    whats wrong with this??
    thx

     
    • Musawir Ali

      Musawir Ali - 2003-04-03

      that is something you will need to figure out on your own since I have never used it with php nuke or any other program. You should try it as is first before trying to integrate it with other code.

       
    • marko markmann

      marko markmann - 2003-04-03

      hi, i find out why iget the errors:

      first the link in the navigation was false, there is one slash after (form=), thats wrong, it must be like this:
      http://www.myurl/uml.php?form=phpform/forms/form1.html

      the other thing is, i look in the code from the formular(i mean formular1.htm) and after action is the the path  not right, there stay in second line:
      action='process.php'
      but thats not right and i change it to:
      action='http://www.URL/phpform/forms/process.php'

      thats it, now its working(also in php-nuke)
      i dont know, why the path in the formular making wrong, may be i unzipp wrong or the download has a bug

      thx

       

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.