Menu

Unable to successfully add forms to site

Help
Rachel
2008-01-30
2013-06-03
  • Rachel

    Rachel - 2008-01-30

    I'm using version 2.09 and have created a couple of forms. However, when I go to add them onto pages, the forms never work.

    I have all of the forms in "/formgen/use" folder. I'm putting forms on pages such as "/interact/supporters.htm" and in completely different folders. I don't know if that affects the form and sending it, like if the "process.php" has to have the full URL. I tried leaving it as "process.php" but it gave me an error saying that it was trying to take me to "interact/process.php", but when I put the full site URL in, I got the error below.

    This is what I have:

    <form enctype='multipart/form-data' action='process.php' method='post'>
    <table border=1 bordercolor='#000000'><tr><tr>
    <table width='50%' border=0>
    <tr><td bgcolor='#C0C0C0'> name</td>
    <td bgcolor='#C0C0C0'>
    <input type=text name='name' size=35></td></tr>
    <tr><td bgcolor='#CCCCCC'> email</td>
    <td bgcolor='#CCCCCC'>
    <input type=text name='email' size=35></td></tr>
    <tr><td bgcolor='#C0C0C0'> url</td>
    <td bgcolor='#C0C0C0'>
    <input type=text name='url' size=35></td></tr>
    </table>
    </td></tr></table>
    <input type='submit' value='Submit Form'> <input type=reset value='Clear Form'></form>

    This is the error I get:

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@sinful-desire.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Basically, I'm lost. I don't understand how to upload the new 3.0 forms, and now adding the 2.09 forms aren't working either. Any ideas?

     
    • TNTEverett

      TNTEverett - 2008-01-30

      1.) By default all the link in your form and process.php are relative not absolute.  This means that the file names, and locations must remain as is unless you want to modify them.  This does not mean that you can not still move them.
      2.) Forms work as generated, correct?
      3.) If you move a form you must move everything with the form.html file and all folders must be moved to the same location relative to the form.html file. 
      For Example:
      /forms/use/mynewform/form.html
      /forms/use/mynewform/process.php
      /forms/use/mynewform/admin/

      moved to
      interact/form.html
      interact/process.php
      interact/admin/

      4.) If you do anything else the form.html and other files will have to be modified.

      The message you get is probably customized.  If you want more detail find your log files. 

       

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.