Adding a picture to a form page

samhop
samhop used Ask the Experts™
on
I am trying to add a picture to a form page and this is what i get. What am I doing wrong?
http://www.floridaseniorliving.com/polar.html
thanks for your time.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Heya samhop,
     Seems to be a nested table issue. What appears to be happening is that you want the input form on the left hand side, and the image on the right.. so you would need a structure like this:

<table>
   <tr>
     <td>
        <table>
          <tr><td>name</td></tr>
          <tr><td>phone</td></tr>
        </table>
     </td>
     <td align="top"><img src="whatever.jpg"></td>
   </tr>
</table>

instead of:

<table>
   <tr>
      <td>name</td>
      <td><img src="whatever.jpg"></td>
   </tr>
   <tr>
      <td>phone</td>
   </tr>
</table>


Nested tables can help a designer out a *lot*. Hope this example helps. Here is a copy of your corrected code:

<HTML>
<HEAD>
  <!-- Created with AOLpress/2.0 -->
  <TITLE>Free Polarized Lens</TITLE>
</HEAD>
<BODY bgcolor="#FFFF00" text="#DE009C" link="#FFFF00" vlink="#FFFF00" alink="#FFFF00">
<FORM method=post action="http://www.cbsinet.com/cgi-bin/hansmail.pl" name="submit">
  <INPUT type="hidden" name="subject" value=" Free Polarized Lens">
  <INPUT type="hidden" name="to" value="restevens@ICARE.com">
  <INPUT type="hidden" name="cc" value="samhop@gte.net"> <FONT color="DE009C">
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  &nbsp;<BIG><B>Activate an account with DYNOPTIC<BR>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and receive
  your free polarized lens.</B></BIG></FONT>
<table bgcolor="FFFF00">
<tr><td>
  <TABLE bgcolor="FFFF00">
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>Name</BIG>: &nbsp;&nbsp;
      &nbsp; &nbsp;</FONT></STRONG></TD>
      <TD valign="top">
      <INPUT type="text" size="30" maxlength="30" name="Name"></TD>
    </TR>
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>&nbsp;
      Address:&nbsp;&nbsp;</BIG></FONT></STRONG></TD>
      <TD valign="top">
      <INPUT type="text" size="30" maxlength="30" name="Address"></TD>
    </TR>
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>City: &nbsp;&nbsp; &nbsp;
      &nbsp; &nbsp;</BIG></FONT></STRONG></TD>
      <TD valign="top">
      <INPUT type="text" size="30" maxlength="30" name="City"></TD>
    </TR>
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>State: &nbsp;&nbsp; &nbsp;
      &nbsp;</BIG></FONT></STRONG></TD>
      <TD valign="top">
      <SELECT name="State" size="1">
      <OPTION selected value>
      <OPTION value="AL">AL Alabama
      <OPTION value="AK">AK Alaska
      <OPTION value="AZ">AZ Arizona
      <OPTION value="AR">AR Arkansas
      <OPTION value="CA">CA California
      <OPTION value="CO">CO Colorado
      <OPTION value="CT">CT Connecticut
      <OPTION value="DE">DE Delaware
      <OPTION value="DC">DC District of Columbia
      <OPTION value="FL">FL Florida
      <OPTION value="GA">GA Georgia
      <OPTION value="HI">HI Hawaii
      <OPTION value="ID">ID Idaho
      <OPTION value="IL">IL Illinois
      <OPTION value="IN">IN Indiana
      <OPTION value="IA">IA Iowa
      <OPTION value="KS">KS Kansas
      <OPTION value="KY">KY Kentucky
      <OPTION value="LA">LA Louisiana
      <OPTION value="ME">ME Maine
      <OPTION value="MD">MD Maryland
      <OPTION value="MA">MA Massachusetts
      <OPTION value="MI">MI Michigan
      <OPTION value="MN">MN Minnesota
      <OPTION value="MS">MS Mississippi
      <OPTION value="MO">MO Missouri
      <OPTION value="MT">MT Montana
      <OPTION value="NE">NE Nebraska
      <OPTION value="NV">NV Nevada
      <OPTION value="NF">NF Newfoundland
      <OPTION value="NH">NH New Hampshire
      <OPTION value="NJ">NJ New Jersey
      <OPTION value="NM">NM New Mexico
      <OPTION value="NY">NY New York
      <OPTION value="NC">NC North Carolina
      <OPTION value="ND">ND North Dakota
      <OPTION value="OH">OH Ohio
      <OPTION value="OK">OK Oklahoma
      <OPTION value="OR">OR Oregon
      <OPTION value="PW">PW Palau
      <OPTION value="PA">PA Pennsylvania
      <OPTION value="RI">RI Rhode Island
      <OPTION value="SC">SC South Carolina
      <OPTION value="SD">SD South Dakota
      <OPTION value="TN">TN Tennessee
      <OPTION value="TX">TX Texas
      <OPTION value="UT">UT Utah
      <OPTION value="VT">VT Vermont
      <OPTION value="VA">VA Virginia
      <OPTION value="WA">WA Washington
      <OPTION value="WV">WV West Virginia
      <OPTION value="WI">WI Wisconsin
      <OPTION value="WY">WY Wyoming </SELECT></TD>
    </TR>
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>Zip: &nbsp;&nbsp; &nbsp;
      &nbsp; &nbsp;&nbsp;</BIG></FONT></STRONG></TD>
      <TD valign="top">
      <INPUT type="text" size="30" maxlength="30" name="Zip"></TD>
    </TR>
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>Phone: &nbsp;
      &nbsp;&nbsp;</BIG></FONT></STRONG></TD>
      <TD valign="top">
      <INPUT type="text" size="30" maxlength="30" name="Phone"></TD>
    </TR>
    <TR>
      <TD align="right"><STRONG><FONT color="DE009C"><BIG>Email</BIG></FONT></STRONG><BIG><B>:
      &nbsp; &nbsp; &nbsp;</B></BIG></TD>
      <TD valign="top">
      <INPUT type="text" size="30" maxlength="48" name="Email"></TD>
    </TR>
  </TABLE>
</td>
      <TD><IMG SRC="slgimages/golfer1.jpg" ALIGN="right"></TD>
</tr></table>
  <CENTER>
    <P>
    <P>
    <TABLE align="left">
      <TR>
      <TD><A HREF="http://www.floridaseniorliving.com/dynoptic1.html"><IMG SRC="slgimages/back.jpg"></A></TD>
      <TD>
        <INPUT SRC="slgimages/submit.jpg" NAME="Submit" TYPE="image" WIDTH="154"
            HEIGHT="89"></TD>
      </TR>
    </TABLE>
  </CENTER>
</FORM>
</BODY></HTML>

Hope this helps!

-Matt

Author

Commented:
Thank you so much for your quick response. It worked great!
Sweet! :)

-Matt

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial