baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: 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>

    Your reply:

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

    Post a new message 

 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