Link to home
Start Free TrialLog in
Avatar of bozo7
bozo7Flag for United States of America

asked on

I don't get it

Why in the following code does "SetPat" keep showing up to the right of the table not below the table.
This has frustrated me for a day or two now.
thanks for the help
Ross

p align="center

font size="5">Enter a New Occurrence
/font>
form method="POST" action"someaction">
  table border="1" width="100%" bordercolor="#008000">
    tr>
      td width="100%">
        p align="center">font size="4">Select Unit to find Patient

  /font>select size="1" name="PatientUnit">
    option>/option>
    option>Inpatient Peds/option>
    option>PHP Adult/option>
    option>Inpatient Adult/option>
    option>PHP Peds/option>
  /select>input type="submit" value="Refresh" name="B1">

        Click on Patient Name to select Patient involved/td>
    /tr>
  /table>
/form>
form method="POST" action="/cgi-bin/occurranceonline.exe/SetPatient">
p align="center">b>Current Unit:/b> Inpatient Peds/p>
Table Width="100%" Align="Left" BgColor="White">
tr>th>Select Patients Involved/th>th Align="Left">Patient Name/th>th Align="Left">MR #/th>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2115" value="ON">/td>td>Patient1/td>td>003303/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2131" value="ON">/td>td>Patient2/td>td>005171/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2081" value="ON">/td>td>Patient3/td>td>003201/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2095" value="ON">/td>td>Patient4/td>td>005138/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2126" value="ON">/td>td>Patient5/td>td>005163/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2089" value="ON">/td>td>Patient6/td>td>005132/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2049" value="ON">/td>td>Patient7/td>td>004123/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2123" value="ON">/td>td>Patient8/td>td>000289/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2118" value="ON">/td>td>Patient9/td>td>005156/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2111" value="ON">/td>td>Patient10/td>td>005149/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="1965" value="ON">/td>td>Patient11/td>td>000194/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2075" value="ON">/td>td>Patient12/td>td>005023/td>/tr>
tr>td Align="Center" VAlign="Middle">input type="checkbox" name="2125" value="ON">/td>td>Patient13/td>td>005160/td>/tr>
/Table>
p align="center">input type="button" value="Next" name="SetPat">/p>
/form>
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

What did you generate that code with.  It is trash.  There are malformed tags all over the place it is a woder it renders at all.

Cd&
Avatar of arcdogl
arcdogl

once your code is ok you could add an extra row to the bottom of the table spanning all three columns:

<tr><td colspan="3"><p align="center"><input type="button" value="Next" name="SetPat"></p></td></tr>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
     <title>Untitled</title>
</head>

<body>
<p align="center">

<font size="5">Enter a New Occurrence
</font>
<form method="POST" action"someaction">
 <table border="1" width="100%" bordercolor="#008000">
   <tr>
     <td width="100%">
      <p align="center"><font size="4">Select Unit to find Patient

 </font>select size="1" name="PatientUnit">
   <option></option>
   <option>Inpatient Peds</option>
   <option>PHP Adult</option>
  <option>Inpatient Adult</option>
   <option>PHP Peds</option>
 </select>


       Click on Patient Name to select Patient involved</td>
   </tr>
 </table>
</form>
<form method="POST" action="/cgi-bin/occurranceonline.exe/SetPatient">
<p align="center"><b>Current Unit:</b> Inpatient Peds</p>
<Table Width="100%" Align="Left" BgColor="White">
<tr><th>Select Patients Involved</th><th Align="Left">Patient Name</th>
<th Align="Left">MR #</th></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2115" value="ON">
</td><td>Patient1</td><td>003303<td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2131" value="ON">
</td><td>Patient2</td><td>005171</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2081" value="ON">
</td><td>Patient3</td><td>003201</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2095" value="ON">
</td><td>Patient4</td><td>005138</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2089" value="ON"></td><td>Patient6</td>
<td>005132</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2049" value="ON"></td><td>Patient7</td>
<td>004123</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2123" value="ON"></td><td>Patient8</td>
<td>000289</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2118" value="ON"></td><td>Patient9</td>
<td>005156</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2111" value="ON"></td><td>Patient10</td>
<td>005149</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="1965" value="ON"></td><td>Patient11</td><td>000194</td></tr>
<tr><td Align="Center" VAlign="Middle">
<input type="checkbox" name="2125" value="ON"></td><td>Patient13</td><td>005160</td></tr>
<tr>
<td align="center" colspan="3"><br>
 <input type="submit" value="Refresh" name="B1">&nbsp;<input type="button" value="Next" name="SetPat"></form></td></tr></Table>



</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of martelll
martelll

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
discobabi,

Please read the guidelines for submitting comments and answers. You seem to be having a problem finding the comment button.  If that is the case, I can ask admit to suspend your account while they instruct you on how to find it.

Most members of this site consider the use of the answer button to be rude and disrespectful.  If you intend to participat in this forum I suggest you follow convention, unless you like being criticized.

Cd&
COBOLdinsaur

you have the nerve to talk about someone being rude.
Another wannabe of the week, who thinks they are going to do as they please.  LOL... you won't be around long with that attitude.

Cd&
Avatar of bozo7

ASKER

I should have mentioned that this code is generated by a CGI script.
I don't want a fix to this specific code I wanted to know what is wrong with it so I can fix the script that generates it.
martelll gave the most helpfull suggestion. Taking out the left align works just how I want it to look.

thanks,
Ross
Avatar of bozo7

ASKER

I should have mentioned that this code is generated by a CGI script.
I don't want a fix to this specific code I wanted to know what is wrong with it so I can fix the script that generates it.
martelll gave the most helpfull suggestion. Taking out the left align works just how I want it to look.

thanks,
Ross
Avatar of bozo7

ASKER

I should have said that this code is generated by a CGI script.
I was wanting how to fix this code so I can fix the cgi script, not the code it self redone to work right.

The comment by martelll works perfectly so I can now fix my cgi script.

Thanks,
Ross
Avatar of bozo7

ASKER

I posted the comment at work this morning. EE raised an error the message was "NULL". So I looked at the questions again and I did not see my comment. So I wrote it again and then now I see it is up there 3 times.

Another thing EE is really, really slow at work but quick at home, I have a slower connection at home than work.

Ross