[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 128
  • Last Modified:

How to make a table

I've got this code which acts as an input form but rather than having each parameter on a seperate line, i would like to have a table with three columns and a parameter in each. In other words each <P> i would like to have a <TD> with 3 <TD>'s going across a page.  What is the code i need to have that??
<HTML>
<HEAD>
   <TITLE> Schedule a task</TITLE>
</HEAD>
<BODY>
<H2> Schedule a task</H2>

<CFFORM ACTION="procAddTask.cfm" METHOD="POST">
<P>Procedure Name:<BR>



<SELECT name = "name">
<CFOUTPUT query="stored_procedures">

<OPTION value="#name#">#name#
</CFOUTPUT>
</SELECT>

<P>subsystem:<BR>
<CFINPUT TYPE="Text"
  NAME="subsystem"
  MESSAGE="Enter subsystem name"
  REQUIRED="No"
  MAXLENGTH="24">

<P>server:<BR>
<CFINPUT TYPE="Text"
  NAME="server"
  MESSAGE="Enter server name"
  REQUIRED="Yes"
  MAXLENGTH="24">
 
<P>username:<BR>
<CFINPUT TYPE="Text"
  NAME="user"
  MESSAGE="Enter user name"
  REQUIRED="Yes"
  MAXLENGTH="24">

<P>databasename:<BR>
<CFINPUT TYPE="Text"
  NAME="database"
  MESSAGE="Enter database name"
  REQUIRED="Yes"
  MAXLENGTH="24">

<P>enabled:<BR>





<P>
<INPUT TYPE="SUBMIT" NAME="ScheduleTask" VALUE="Schedule task now">
</CFFORM>
</BODY>
</HTML>


0
xoxomos
Asked:
xoxomos
  • 2
1 Solution
 
chewymonCommented:
Here is one way I did it for a customer.  You will notice the use of <blockquote>


<FORM ACTION="http://some.net/cgi-bin/cgiemail/~user/form.txt"
 METHOD="POST">
<INPUT TYPE="hidden" NAME="success"
 VALUE="http://some.net/~user/thanks.htm">
<TABLE WIDTH="95%" CELLSPACING="20">
<TR>
<TD VALIGN="top">
<CENTER>

<H2>Contact information.</H2>
</CENTER><P>



<BLOCKQUOTE>
<STRONG>
NAME<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME="NAME" SIZE=28      MAXLENGTH=50><BR>
ADDRESS<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME="STREET" SIZE=28       MAXLENGTH=50><BR>
CITY<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME="CITY" SIZE=28       MAXLENGTH=50><BR>
STATE<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME="STATE" SIZE="12"  MAXLENGTH=50><BR>
ZIP<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME=ZIP SIZE="6" MAXLENGTH=20><BR>
TELEPHONE<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME="PHONE" SIZE=28       MAXLENGTH=50><BR>
E-MAIL<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><INPUT TYPE=TEXT NAME="E-MAIL" SIZE=28       MAXLENGTH=50></STRONG></BLOCKQUOTE>
</TD>
<TD VALIGN="top">
<CENTER>
<H2>Project basics.</H2>
</CENTER><P>
<BLOCKQUOTE><STRONG>
Project Type<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><SELECT NAME="project">
      <OPTION SELECTED>New Computer
      <OPTION>Upgrade Computer
      
</SELECT><BR>
Price Range<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><SELECT NAME="price">
                  <OPTION>Under $75
                  <OPTION>$75- $200
      <OPTION>$200- $1.000
      <OPTION SELECTED>$1,000-$1,500
      <OPTION>$1,500-$2.000
      <OPTION>Over $2,000
      
      
</SELECT>
<BR>Hard drive size<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><SELECT NAME="drive">
                  <OPTION>Not Applicable
      <OPTION>Under 2 GB
      <OPTION>2 GB to 3 GB
      <OPTION SELECTED>3 GB to 6 GB
      <OPTION>Over 6 GB                    
</SELECT>
<BR>CD and DVD ROM<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><SELECT NAME="rom">
      <OPTION>Not Applicable
                   <OPTION>CD ROM Only
      <OPTION SELECTED>CD ROM and DVD ROM
      <OPTION>CD-R
      <OPTION>CD-RW
</SELECT>
<BR>Other Items<IMG SRC="images/1x1.gif" HEIGHT="30" WIDTH="1"><BR><SELECT NAME="other">
      <OPTION>Not Applicable
                   <OPTION>Upgrade Sound
      <OPTION>Upgrade Video
      <OPTION SELECTED>Upgrade Sound and Video
                  <OPTION>Modem
                  <OPTION>Printer
</SELECT>
</STRONG></BLOCKQUOTE>
</TD>
</TR>
</TABLE>
0
 
MasseyMCommented:
Like this one?

<HTML>
<HEAD>
   <TITLE> Schedule a task</TITLE>
</HEAD>
<BODY>
<H2> Schedule a task</H2>

<CFFORM ACTION="procAddTask.cfm" METHOD="POST">
<TABLE WIDTH="100%">
<TR>
      <TD>Procedure Name:</TD>
      <TD>
            <SELECT name = "name"><CFOUTPUT query="stored_procedures">
            <OPTION value="#name#">#name#
            </CFOUTPUT>
            </SELECT>
      </TD>
</TR>
<TR>
      <TD>subsystem:</TD>
      <TD>
            <CFINPUT TYPE="Text"
              NAME="subsystem"
              MESSAGE="Enter subsystem name"
              REQUIRED="No"
              MAXLENGTH="24">
      </TD>
</TR>
<TR>
      <TD>server:</TD>
      <TD>
            <CFINPUT TYPE="Text"
              NAME="server"
              MESSAGE="Enter server name"
              REQUIRED="Yes"
              MAXLENGTH="24">
      </TD>
</TR>
<TR>
      <TD>username:</TD>
      <TD>
            <CFINPUT TYPE="Text"
              NAME="user"
              MESSAGE="Enter user name"
              REQUIRED="Yes"
              MAXLENGTH="24">
      </TD>
</TR>
<TR>
      <TD>databasename:</TD>
      <TD>
            <CFINPUT TYPE="Text"
              NAME="database"
              MESSAGE="Enter database name"
              REQUIRED="Yes"
              MAXLENGTH="24">
      </TD>
</TR>
<TR>
      <TD>enabled:</TD>
      <TD>

      </TD>
</TR>
<TR>
      <TD><INPUT TYPE="SUBMIT" NAME="ScheduleTask" VALUE="Schedule task now"> </TD>
      <TD>

      </TD>
</TR>
</TABLE>
</CFFORM>
</BODY>
</HTML>
0
 
NickRackhamCommented:
Or like this

<html>

<head>
<title> Schedule a task</title>
</head>

<body>

<h2>Schedule a task</h2>
<CFFORM ACTION="procAddTask.cfm" METHOD="POST">
<div align="center"><center>

<table border="0" width="100%">
  <tr>
    <td width="33%">Procedure Name:<br>
    <select name="name" size="1">
    </select><CFOUTPUT query="stored_procedures"></CFOUTPUT> </td>
    <td width="33%">subsystem:<br>
<CFINPUT TYPE="Text" NAME="subsystem" MESSAGE="Enter subsystem name" REQUIRED="No" MAXLENGTH="24">    </td>
    <td width="34%">server:<br>
<CFINPUT TYPE="Text" NAME="server" MESSAGE="Enter server name" REQUIRED="Yes" MAXLENGTH="24">    </td>
  </tr>
  <tr>
    <td width="33%">username:<br>
<CFINPUT TYPE="Text" NAME="user" MESSAGE="Enter user name" REQUIRED="Yes" MAXLENGTH="24">    </td>
    <td width="33%">databasename:<br>
<CFINPUT TYPE="Text" NAME="database" MESSAGE="Enter database name" REQUIRED="Yes" MAXLENGTH="24">    </td>
    <td width="34%">enabled:<br>
    <input TYPE="SUBMIT" NAME="ScheduleTask" VALUE="Schedule task now"> </CFFORM> </td>
  </tr>
</table>
</center></div>
</body>
</html>


Apologies if its identical to previous postings

Nick

0
 
MasseyMCommented:
Hey, wasn't mine just like his?  I posted first didn't I ?
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now