baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from TheOneRing on 2/19 2004, 01:43 +00:00
    EMail: theonering@thegateroom.com WWW: geocities.com/theonering_stargate

    Re: submit to db not working


      Your code below:
       do_all "listfields=#10", "", "name_in", "password_in";

      You need to remove the extra "". Write it like this:

       do_all "listfields=#10", "name_in", "password_in";

      I assume that you have a field #10 as well??

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from MF on 2/18 2004, 14:36 -05:00

    submit to db not working


      Thanks for all the help so far- I finally have everything I want (password, 10 columns) but when I tested it online, I couldn't add a new entry. My rights allow users to read, add, and modify data.
      All of the fields can be filled in, but the SUBMIT button and the RESET button don't so anything when you click them.

      This message is displayed on the NEW FIELD web page:

      New entry:

      baseportal.pl?name_in=MF&password_in=1414&htx=/fasasap/Main&cmd=add



      Here's the code for the webpage:

      <html><head><title>Appointments Log</title></head>
      <body bgcolor=ffffff>
      <font face=arial,helvetica>
      <font size=1></font>
      <h3>Appointments Log</h3>
      <perl>

      if($name_in ne "")
      {
      get "Name==!$name_in", "users";

        if($Password ne "" && $Password eq $password_in)
        {
          do_all "listfields=#10", "", "name_in", "password_in";
        } else
        {
          out "<b>Access denied!</b>";
          $name_in="";
        }

      }

      if($name_in eq "")
      {

      out <<EOF;
      <h2>Sign in</h2>Please sign in:
      <form action="/cgi-bin/baseportal.pl?htx=$htx" method="post" enctype="multipart/form-data">
      <input type=hidden name="htx=" value="$htx">
      <table>
      <tr><td>Name:</td><td><input type="text" name="name_in="></td></tr>
      <tr><td>Password:</td><td><input type="password" name="password_in="></td></tr>
      <tr><td></td><td><input type=submit value="Sign in"></td></tr>
      </table></form>
      EOF

      }

      </perl>
      </body></html>

     Post a reply

    Message from TheOneRing on 2/19 2004, 01:43 +00:00
    EMail: theonering@thegateroom.com WWW: geocities.com/theonering_stargate

    Re: submit to db not working


      Your code below:
       do_all "listfields=#10", "", "name_in", "password_in";

      You need to remove the extra "". Write it like this:

       do_all "listfields=#10", "name_in", "password_in";

      I assume that you have a field #10 as well??

     Post a reply
     

 Messages from 2700 to 2850: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



baseportal.com