Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6771409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:25:43+00:00 2026-05-26T15:25:43+00:00

So I am trying to have input textboxes as well as their descriptions, and

  • 0

So I am trying to have input textboxes as well as their descriptions, and I want each to be ultimately of equal length. Like for example, I would have a textbox that would look like this:

Username: [             ]

However, lets say I also had a input textbox which said “OS:”

I would like it to be like this:

Username: [             ]
OS:       [             ]

And I would like this to be true for each and every input field inside of a table (or not in a table? I am not sure)

How would I do this?

EDIT:

I have multiple fields, all of which I want to be the same length, i.e.:

Username:     [             ]      Machine Name: [             ]
OS:           [             ]      Model:        [             ]

Here is my code:

<form action="addrecord.psp" method="get">
<table>
<tr><td>Username: <input type="text" name="uname" size="12"/></td>
<td>Machine Name:<input type="text" name="mname" size="8" /></td>
<td>Make: <input type=text" name="make" size="8" /></td>
<td>Model: <input type="text" name="model" size="8"/></td>
<td>Service Tag: <input type="text" name="service" size="8"/></td></tr>
<tr><td>Processor: <input type="text" name="processor" size="12"/></td>
<td>Processor Speed: <input type="text" name="speed" size="4"/></td>
<td>Amount of RAM: <input type="text" name="ram" size="3"/></td>
<td>Type of RAM: <input type="text" name="ram2" size="4"/></td>
<td>RAM Speed: <input type="text" name="rspeed" size="4"/></td></tr>
<td>Graphics Card: <input type="text" name=graphics" size="8"/></td>
<td>Wired Mac Add: <input type="text" name="wired" size="17"/></td>
<td>Wireless Mac Add: <input type="text" name="wireless" size="17"/></td></tr>
<tr><td>OS: <input type="text" name="os" size="12"/></td>
<td>Deploy Date: <input type="text" name="deploy" size="12"/></td>
<td>Last Check-up: <input type="text" name="checkup" size="12"/></td>
<td><input type="submit" value="Submit" /></td></tr>
</table>
</form>

I don’t believe my new form, with the fieldsets is submitting correctly, I get the following callback:

Traceback (most recent call last):

File “/usr/lib/python2.7/dist-packages/mod_python/importer.py”, line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File “/usr/lib/python2.7/dist-packages/mod_python/importer.py”, line 1229, in _process_target
result = _execute_target(config, req, object, arg)

File “/usr/lib/python2.7/dist-packages/mod_python/importer.py”, line 1128, in _execute_target
result = object(arg)

File “/usr/lib/python2.7/dist-packages/mod_python/psp.py”, line 337, in handler
p.run()

File “/usr/lib/python2.7/dist-packages/mod_python/psp.py”, line 243, in run
exec code in global_scope

File “/var/www/inventory/addrecord.psp”, line 34, in
VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)””” , (username, mname, make, model, service, processor, speed, ram, ram2, rspeed, graphics, wired, wireless, os, deploy, checkup))

File “/usr/lib/pymodules/python2.7/MySQLdb/cursors.py”, line 174, in execute
self.errorhandler(self, exc, value)

File “/usr/lib/pymodules/python2.7/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue

OperationalError: (1048, “Column ‘user’ cannot be null”)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:25:44+00:00Added an answer on May 26, 2026 at 3:25 pm

    More valid way to do it:

    <style>
    
    fieldset { 
        overflow: hidden; 
        margin-bottom: 5px;
        display: inline-block;
        width: 270px;
    }
    
    label { float: left; width: 120px; }
    
    input { width: 120px; }
    
    </style>
    
    <fieldset>
      <label for="username">Username:</label>
      <input type="text" id="username" />
    </fieldset>
    <fieldset>
      <label for="mname">Machine Name:</label>
      <input type="text" id="mname" />
    </fieldset>
    <fieldset>
      <label for="os">OS:</label>
      <input type="text" id="os" />
    </fieldset>
    <fieldset>
      <label for="model">Model:</label>
      <input type="text" id="model" />
    </fieldset>
    

    This way you will also focus focus cursor on fields then their labels are clicked.

    Example: http://jsfiddle.net/6SVp7/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement the autocomplete method for textboxes. I would like to
i have an input soap message, trying to replace part of namespace uri with
I've been trying to have a default value in a text input, then with
I'm trying to have Joda print 0 seconds if the input time is zero,
I'm trying to build something on javascript that I can have an input that
I have been trying to set the value of a hidden input by using
What I'm trying to do is have the user input a number, and then
I have a WPF form where I'm trying to make a simple input form.
I have a program that reads input from a file. I am trying to
I'm trying to write a wrapper for Winamp input plugins and have hit a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.