Jump to content

cameeob2003

Members
  • Posts

    79
  • Joined

  • Last visited

    Never

Everything posted by cameeob2003

  1. I wanted to do that but it is hard to because it messes up my image layout if I dont place the <form></form> outside of the <tr></tr> tags. I realy need to know If I can wrap each <input> with <form></form> tags individually and set the name the same on 2 of the form tags will it pick up that the 2 forms are meant to be one?
  2. I have the following code I am trying to work with: [code]<form method="post" action="act.php" name="form1">                 <tr>                   <td><table width="13" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="13"><img src="images/index_15.gif" width="45" height="17" alt=""></td> <td><input type="text" name="email" value="" style="background:url(images/index_16.gif); width:139px; height:13px; border:none; font-size:9px;" /></td> <td><img src="images/index_17.gif" width="17" height="17" alt=""></td>                       </tr>                     </table></td>                 </tr>                 <tr>                   <td><table width="194" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="185"><img src="images/index_18.gif" width="201" height="5" alt=""></td>                       </tr>                     </table></td>                 </tr>                 <tr>                   <td><table width="188" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="44"><img src="images/index_19.gif" width="50" height="16" alt=""></td>                         <td width="136"><input type="submit" name="subscribe" value="" style="background:url(images/index_20.gif); width:58px; height:16px; border:none;" /></td>                         <td width="10"><img src="images/index_21.gif" width="7" height="16" alt=""></td>                         <td width="17"><input type="submit" name="unsubscribe" value="" style="background:url(images/index_22.gif); width:66px; height:16px; border:none;" /></td> <td><img src="images/index_23.gif" width="20" height="16" alt=""></td>                                           </table></td>                 </tr> </form>[/code] I want this part: [code]<form method="post" action="act.php" name="form1">                 <tr>                   <td><table width="13" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="13"><img src="images/index_15.gif" width="45" height="17" alt=""></td> <td><input type="text" name="email" value="" style="background:url(images/index_16.gif); width:139px; height:13px; border:none; font-size:9px;" /></td> <td><img src="images/index_17.gif" width="17" height="17" alt=""></td>                       </tr>                     </table></td>                 </tr>                 <tr>                   <td><table width="194" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="185"><img src="images/index_18.gif" width="201" height="5" alt=""></td>                       </tr>                     </table></td>                 </tr>                 <tr>                   <td><table width="188" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="44"><img src="images/index_19.gif" width="50" height="16" alt=""></td>                         <td width="136"><input type="submit" name="subscribe" value="" style="background:url(images/index_20.gif); width:58px; height:16px; border:none;" onClick="document.theform.action='?act=subscribe';" /></td>[/code] to access one form. While this code: [code]<td width="17"><input type="submit" name="unsubscribe" value="" style="background:url(images/index_22.gif); width:66px; height:16px; border:none;" onClick="document.theform.action='?act=unsubscribe;" /></td> <td><img src="images/index_23.gif" width="20" height="16" alt=""></td>                                           </table></td>                 </tr> </form>[/code] Accesses and is processed through another php page upon submition. I know this can be done through javascript but is there an easier way since I have no knowledge of javascript seeing how I am still learning php. Any help would be great. Also if I give 2 forms the same name="" value will they submit to the same form and be processed at the same time?
  3. How would i go about doing this. I have 2 diffent pages I want to redirect the user to depending on what they click.
  4. I have the following code: [code]<table width="13" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="13"><img src="images/index_15.gif" width="45" height="17" alt=""></td> <td><input type="text" name="email" value="" style="background:url(images/index_16.gif); width:137px; height:13px; border:none; font-size:9px;" /></td> <td><img src="images/index_17.gif" width="17" height="17" alt=""></td>                       </tr>                     </table></td>                 </tr>                 <tr>                   <td><table width="194" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="185"><img src="images/index_18.gif" width="201" height="5" alt=""></td>                       </tr>                     </table></td>                 </tr>                 <tr>                   <td><table width="188" border="0" cellpadding="0" cellspacing="0">                       <tr>                         <td width="44"><img src="images/index_19.gif" width="50" height="16" alt=""></td>                         <td width="136"><input type="submit" name="subscribe" value="" style="background:url(images/index_20.gif); width:58px; height:16px; border:none;" /></td>                         <td width="10"><img src="images/index_21.gif" width="7" height="16" alt=""></td>                         <td width="17"><input type="submit" name="unsubscribe" value="" style="background:url(images/index_22.gif); width:66px; height:16px; border:none;" /></td> <td><img src="images/index_23.gif" width="20" height="16" alt=""></td>                                           </table>[/code] I want the three <input> areas to be in one form with 2 different options our outputs depending on the button you click. Is this possible it seems doable but is it?
  5. I am trying to make the basic form as shown below: [code]<form method="post" name="signup" action="code/subscribe.php" style="margin-top: 0px; margin-bottom: 0px;"> <tr valign="top"> <td colspan="2"> <img src="images/index_26.gif" width="45" height="17" alt=""></td> <td colspan="6" valign="top"> <input name="email" type="text" style="background-image:images/index_27.gif; width:139px; height:17px; border:none; margin-top: 0px; margin-bottom: 0px;" border="0" align="top" height="16" width="139"> </td> <td colspan="2"> <img src="images/index_28.gif" width="10" height="17" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="17" alt=""></td> </tr> <tr> <td colspan="10"> <img src="images/index_29.gif" width="194" height="5" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="5" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/index_30.gif" width="50" height="16" alt=""></td> <td valign="top"> <input type="button" align="top" vspace="0" border="0" style="background:url(images/index_31.gif); width:67px; height:16px; border:0px; margin-top: 0px; margin-bottom: 0px;" width="67" height="16"> </td> <td> <img src="images/index_32.gif" width="6" height="16" alt=""></td> <td colspan="2" valign="top"> <input type="button" align="top" vspace="0" border="0" style="background:url(images/index_33.gif); width:58px; height:16px; border:0px; margin-top: 0px; margin-bottom: 0px;" width="58" height="16"> </td> <td colspan="3"> <img src="images/index_34.gif" width="13" height="16" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="16" alt=""></td> </tr> </form>[/code] I want one of the inputs to grab the information from the email input and add it to my mysql database. I want the other to delete the email from my database. I have the PHP side of things done but dont know how to add this to multi-function to my HTML form. Any help would be great.
  6. Yeah thats in SwiftFox not in IE. Im trying to solve the IE problem I already know it displays correct in FireFox. But thanks. So if any one could help me out with this in IE that would be great.
  7. [url=http://www.wimplash.com/projects/project1/]www.wimplash.com/projects/project1/[/url] There is a live post of the site As you can see the subscription box is not correctly aligned. -- Any help is great
  8. Here is the code im using as you can see I went overboard in order to try and get rid of the spaces in between the <inputs> and the images: [code]<form method="post" name="subscribe" action="subscribe"> <tr style="border:none; border-bottom:none; border-left:none; border-right:none; border-top:none;"> <td colspan="2"> <img src="images/Serrials-Dad_26.gif" alt="" width="45" height="17" hspace="0" vspace="0" border="0"></td> <td colspan="5"> <input type="text" align="top" style="background-image: images/Serrials-Dad_27.gif; width:139px; height:17; border:none; border-bottom:none; border-left:none; border-right:none; border-top:none;" alt="" border="0"> </td> <td colspan="2"> <img src="images/Serrials-Dad_28.gif" alt="" width="10" height="17" hspace="0" vspace="0" border="0"></td> </tr> <tr> <td colspan="9"> <img src="images/Serrials-Dad_29.gif" width="194" height="5" alt="" border="0"></td> </tr> <tr> <td colspan="3"> <img src="images/Serrials-Dad_30.gif" alt="" width="50" height="16" hspace="0" vspace="0" border="0"></td> <td> <input type="button" align="top" style="background:url(images/Serrials-Dad_31.gif); width:67px; height:16px; border:none; border-bottom:none; border-left:none; border-right:none; border-top:none;" border="0"> </td> <td> <img src="images/Serrials-Dad_32.gif" alt="" width="6" height="16" hspace="0" vspace="0" border="0"></td> <td> <input type="button" align="top" style="background:url(images/Serrials-Dad_33.gif); width:58px; height:16px; border:none; border-bottom:none; border-left:none; border-right:none; border-top:none;" border="0"> </td> <td colspan="3"> <img src="images/Serrials-Dad_34.gif" alt="" width="13" height="16" hspace="0" vspace="0" border="0"></td> </tr> </form>[/code] Any help would be great. I need it fast if possible. Thnx
  9. I understand all of that... I assume my question was not clear enough. I was using the following to display information from my database before: [code]$sql = "SELECT * FROM `news` order by `id` DESC"; $result = mysql_query($sql) or die(mysql_error()); while ($text = mysql_Fetch_array($result)) { $id = $text['id']; $title = $text['title']; $date = $text['date']; $author = $text['author'];[/code] I want to do something similar but only display the values in the db marked to 1,2,3 ect... So I would be using something like this [code]echo'<table> <tr> <td>'. $myvariable .'</td> <td>'. $myvariable2 .'</td> </tr> </table>[/code] but it would only display the rows that have a value of 1,2,3.. in the access section
  10. I am trying to diplay data on my webpage using php. I only want certain fields which have the correct value to display in the area I choose. I am fairly new to php and was not sure what this set of commands to do this would be called or how I would preform it. Any help is great. Explinations are better :)
  11. I am trying to run the following code: [code]<table border="0" cellpadding="0" cellspacing="0"> <tr> <td background="images/news_'. $table_background .'.jpg" height="19" align="left" valign="bottom" align="center"><font style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#CCCCCC"/>'. $title .' '. $date .'</td> </tr> <tr> <td align="left" background="images/news_2.jpg"><font style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000"/>'. $content .'</td> </tr> <tr> <td><img src="images/news_'. $td_background .'.jpg" width="652" height="17" alt=""></td> </tr> </table>[/code] As you can see I want the "  '. $title.'  " and the  "  '.$date.'  " to be seperated on oposite sides of the <td> span but im not sure how to acomplish this. Any help is appreciated.
  12. this is an example of what i am doing: [url=http://n2p.ventgaming.com/for%20ref/image%20layout/index.php]http://n2p.ventgaming.com/for%20ref/image%20layout/index.php[/url] I want the first one in the newsection to be "Blue and Silver" the next one "Orange and Silver" the one after that "Blue and Silver" Ect... I hope this helps you understand my question :)
  13. I am trying to use the following code and get 2 different posts from my MySQL database: [code]<?php switch ($_GET['page']){ default: case "home": $sql = "SELECT * FROM `news` order by `id` DESC LIMIT 0,3"; $result    = mysql_query($sql) or die(mysql_error()); $num    = mysql_num_rows($result); while ($text = mysql_Fetch_array($result)) {     $id = $text['id'];     $title = $text['title'];     $date = $text['date'];     $author = $text['author'];     $content = $text['content']; echo '<table border="0" cellpadding="0" cellspacing="0"><td background="images/news_1.jpg" height="19" align="left" valign="bottom" width="652">'. $title .'</td></tr> <tr> <td align="left" background="images/news_2.jpg">'. $content .'</td> </tr> <tr> <td background="images/news_3.jpg" height="17"></td> </tr>'; echo '</table>'; echo '<table border="0" cellpadding="0" cellspacing="0"><td background="images/news_4.jpg" height="19" align="left" valign="bottom" width="652">'. $title .'</td></tr> <tr> <td align="left" background="images/news_2.jpg">'. $content .'</td> </tr> <tr> <td><img src="images/news_6.jpg" width="652" height="17" alt=""></td> </tr>'; echo '</table>';} break;} ?>[/code] But when it outputs it displays 2 of each post from my news table. Is there a way to make this only display 1 of each news post while using the following html output?
  14. Is there a more explanitory way of putting this since I am a Java newb and this all comes as a blur without some explinations.
  15. Here is the code I am working with: [code]<script language="Javascript"> <!-- function --> function changeRoster(teamID){ switch(teamID){ case '1': <div id="divleftmargin7px" style="position:absolute; top: 219px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 225px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player1.jpg" </div> <div id="divleftmargin57px" style="position:absolute; top: 225px;"> <img src="images/layout3_46.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player2.jpg"</div> <div id="divleftmargin106px" style="position:absolute; top: 225px;"> <img src="images/layout3_35.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player3.jpg"</div> <div id="divleftmargin163px" style="position:absolute; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player4.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 225px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 256px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player5.jpg" </div> <div id="divleftmargin57px" style="position:absolute; top: 278px;"> <img src="images/layout3_33.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player6.jpg"</div> <div id="divleftmargin107px" style="position:absolute; top: 278px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 278px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player7.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 278px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 309px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player8.jpg"</div> break; case '2': <div id="divleftmargin7px" style="position:absolute; top: 219px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 225px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team2player1.jpg"</div> <div id="divleftmargin57px" style="position:absolute; top: 225px;"> <img src="images/layout3_46.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team2player2.jpg"</div> <div id="divleftmargin106px" style="position:absolute; top: 225px;"> <img src="images/layout3_35.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team2player3.jpg"</div> <div id="divleftmargin163px" style="position:absolute; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team2player4.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 225px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 256px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team2player5.jpg" </div> <div id="divleftmargin57px" style="position:absolute; top: 278px;"> <img src="images/layout3_33.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team2player6.jpg"</div> <div id="divleftmargin107px" style="position:absolute; top: 278px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 278px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team2player7.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 278px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 309px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team2player8.jpg"</div> break; case '3': <div id="divleftmargin7px" style="position:absolute; top: 219px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 225px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team3player1.jpg"</div> <div id="divleftmargin57px" style="position:absolute; top: 225px;"> <img src="images/layout3_46.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team3player2.jpg"</div> <div id="divleftmargin106px" style="position:absolute; top: 225px;"> <img src="images/layout3_35.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team3player3.jpg"</div> <div id="divleftmargin163px" style="position:absolute; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team3player4.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 225px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 256px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team3player5.jpg" </div> <div id="divleftmargin57px" style="position:absolute; top: 278px;"> <img src="images/layout3_33.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team3player6.jpg"</div> <div id="divleftmargin107px" style="position:absolute; top: 278px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 278px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team3player7.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 278px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 309px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team3player8.jpg"</div> break; case '4': <div id="divleftmargin7px" style="position:absolute; top: 219px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 225px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team4player1.jpg"</div> <div id="divleftmargin57px" style="position:absolute; top: 225px;"> <img src="images/layout3_46.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team4player2.jpg"</div> <div id="divleftmargin106px" style="position:absolute; top: 225px;"> <img src="images/layout3_35.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team4player3.jpg"</div> <div id="divleftmargin163px" style="position:absolute; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team4player4.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 225px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 256px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team4player5.jpg" </div> <div id="divleftmargin57px" style="position:absolute; top: 278px;"> <img src="images/layout3_33.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team4player6.jpg"</div> <div id="divleftmargin107px" style="position:absolute; top: 278px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 278px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team4player7.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 278px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 309px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team4player8.jpg"</div> break; default: echo <div id="divleftmargin7px" style="position:absolute; top: 219px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 225px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player1.jpg"</div> <div id="divleftmargin57px" style="position:absolute; top: 225px;"> <img src="images/layout3_46.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player2.jpg"</div> <div id="divleftmargin106px" style="position:absolute; top: 225px;"> <img src="images/layout3_35.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player3.jpg"</div> <div id="divleftmargin163px" style="position:absolute; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 225px;"> document.rosterPics.playerOne.src = "team1player4.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 225px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 256px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player5.jpg" </div> <div id="divleftmargin57px" style="position:absolute; top: 278px;"> <img src="images/layout3_33.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player6.jpg"</div> <div id="divleftmargin107px" style="position:absolute; top: 278px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 278px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player7.jpg"</div> <div id="divleftmargin205px" style="position:absolute; top: 278px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 309px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 278px;"> document.rosterPics.playerOne.src = "team1player8.jpg"</div> break; } } <!-- End of function --> </script>[/code] I am trying to get the <div> to diplay as they would through html and was wondering if there is any way to do this. All help is very much apprecriated.
  16. Ok after almost a full day of research and coding I have done it!!!! So i wanted to share my setup and what i have learned with everyone else. In all I got alot of good answers but none of them 100% correct (I figure its because this situation can have many outcomes). In any case I will share my html file and css file that worked. [code]<title>n2p - Nothing to Prove -</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="n2p.css" /> </head> <body> <div id="container"> <div id="body"> <div id="divleftmargin893px" style="position:absolute;top: 0px;"> <img src="images/layout3_01.jpg" width="7" height="700" border="0" alt=""></div> <div id="divleftmargin7px" style="position:absolute;top: 0px;"> <img src="images/layout3_02.jpg" width="886" height="11" border="0" alt=""></div> <div id="divleftmargin0px" style="position:absolute; top: 0px;"> <img src="images/layout3_03.jpg" width="7" height="700" border="0" alt=""></div> <div id="divleftmargin7px" style="position:absolute;top: 11px;"> <img src="images/layout3_04.jpg" width="701" height="164" alt=""></div> <div id="divleftmargin708px" style="position:absolute;top: 11px;"> <img src="images/layout3_05.jpg" width="185" height="14" alt=""></div> <div id="divleftmargin708px" style="position:absolute;top: 24px;"> <img src="images/layout3_06.jpg" width="68" height="18" alt=""></div> <div id="divleftmargin776px" style="position:absolute;top: 50px;"> <img src="images/layout3_07.jpg" width="103" height="18" alt=""></div> <div id="divleftmargin879px" style="position:absolute; top: 50px;"> <img src="images/layout3_08.jpg" width="14" height="18" alt=""></div> <div id="divleftmargin708px" style="position:absolute;top: 42px;"> <img src="images/layout3_09.jpg" width="185" height="8" alt=""></div> <div id="divleftmargin708px" style="position:absolute;top: 50px;"> <img src="images/layout3_10.jpg" width="68" height="18" alt=""></div> <div id="divleftmargin776px" style="position:absolute;top: 24px;"> <img src="images/layout3_11.jpg" width="103" height="18" alt=""></div> <div id="divleftmargin879px" style="position:absolute;top: 24px;"> <img src="images/layout3_12.jpg" width="14" height="18" alt=""></div> <div id="divleftmargin708px" style="position:absolute; top: 68px;"> <img src="images/layout3_13.jpg" width="185" height="34" alt=""></div> <div id="divleftmargin708px" style="position:absolute; top: 102px;"> <img src="images/layout3_14.jpg" width="82" height="17" alt=""></div> <div id="divleftmargin790px" style="position:absolute; top: 102px;"> <img src="images/layout3_15.jpg" width="23" height="17" alt=""></div> <div id="divleftmargin813px" style="position:absolute; top: 102px;"> <img src="images/layout3_16.jpg" width="80" height="17" alt=""></div> <div id="divleftmargin708px" style="position:absolute; top: 119px;"> <img src="images/layout3_17.jpg" width="185" height="56" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 175px;"> <img src="images/layout3_18.jpg" width="886" height="23" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 198px;"> <img src="images/layout3_19.jpg" width="212" height="18" alt=""></div> <div id="divleftmargin219px" style="position:absolute; top: 198px;"> <img src="images/layout3_20.jpg" width="216" height="18" alt=""></div> <div id="divleftmargin435px" style="position:absolute; top: 198px;"> <img src="images/layout3_21.jpg" width="224" height="18" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 198px;"> <img src="images/layout3_22.jpg" width="234" height="18" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 216px;"> <img src="images/layout3_23.jpg" width="886" height="3" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 219px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div id="divleftmargin220px" style="position:absolute; top: 219px;"> <img src="images/layout3_25.jpg" width="216" height="90" alt=""></div> <div id="divleftmargin436px" style="position:absolute; top: 219px;"> <img src="images/layout3_26.jpg" width="223" height="90" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 219px;"> <img src="images/layout3_27.jpg" width="234" height="2" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 219px;"> <img src="images/layout3_28.jpg" width="8" height="61" alt=""></div> <div id="divleftmargin676px" style="position:absolute;top: 221px;"> <img src="images/layout3_29.jpg" width="220" height="47" alt=""></div> <div id="divleftmargin887px" style="position:absolute; top: 221px;"> <img src="images/layout3_30.jpg" width="6" height="47" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 278px;"> <img src="images/layout3_32.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin57px" style="position:absolute; top: 277px;"> <img src="images/layout3_33.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 278px;"> <img src="images/layout3_34.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin106px" style="position:absolute; top: 225px;"> <img src="images/layout3_35.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 278px;"> <img src="images/layout3_36.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 278px;"> <img src="images/layout3_38.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin205px" style="position:absolute; top: 225px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 256px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div id="divleftmargin676px" style="position:absolute; top: 268px;"> <img src="images/layout3_41.jpg" width="43" height="12" alt=""></div> <div id="divleftmargin710px" style="position:absolute; top: 268px;"> <img src="images/layout3_42.jpg" width="45" height="12" alt=""></div> <div id="divleftmargin755px" style="position:absolute; top: 268px;"> <img src="images/layout3_43.jpg" width="138" height="12" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 225px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin170px" style="position:absolute; top: 225px;"> <img src="images/layout3_45.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin57px" style="position:absolute; top: 225px;"> <img src="images/layout3_46.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin120px" style="position:absolute; top: 225px;"> <img src="images/layout3_47.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin107px" style="position:absolute; top: 278px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div id="divleftmargin71px" style="position:absolute; top: 225px;"> <img src="images/layout3_50.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin163px" style="position:absolute; top: 278px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin22px" style="position:absolute; top: 225px;"> <img src="images/layout3_52.jpg" width="35" height="31" alt=""></div> <div id="divleftmargin205px" style="position:absolute; top: 278px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 280px;"> <img src="images/layout3_54.jpg" width="234" height="47" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 309px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div id="divleftmargin220px" style="position:absolute; top: 309px;"> <img src="images/layout3_56.jpg" width="216" height="19" alt=""></div> <div id="divleftmargin436px" style="position:absolute; top: 309px;"> <img src="images/layout3_57.jpg" width="223" height="19" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 327px;"> <img src="images/layout3_58.jpg" width="234" height="19" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 328px;"> <img src="images/layout3_59.jpg" width="652" height="18" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 519px;"> <img src="images/layout3_60.jpg" width="652" height="135" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 346px;"> <img src="images/layout3_61.jpg" width="234" height="111" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 457px;"> <img src="images/layout3_62.jpg" width="234" height="19" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 476px;"> <img src="images/layout3_63.jpg" width="234" height="111" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 656px;"> <img src="images/layout3_64.jpg" width="652" height="19" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 500px;"> <img src="images/layout3_65.jpg" width="652" height="19" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 346px;"> <img src="images/layout3_66.jpg" width="652" height="137" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 587px;"> <img src="images/layout3_67.jpg" width="234" height="19" alt=""></div> <div id="divleftmargin659px" style="position:absolute; top: 606px;"> <img src="images/layout3_68.jpg" width="234" height="67" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 481px;"> <img src="images/layout3_69.jpg" width="652" height="19" alt=""></div> <div id="divleftmargin7px" style="position:absolute; top: 673px;"> <img src="images/layout3_70.jpg" width="886" height="27" alt=""></div> </div></div> </body> </html>[/code] css file: [code]#container { background-color:#394F66; margin: 0; padding:0px; width: 100% } #body{ background-color:#394F66; text-align:center; width: 900px; margin-left: auto; margin-right: auto; } #centerbox { text-align:left } #divleftmargin7px{ margin-left: 7px; } #divleftmargin22px{ margin-left: 22px; } #divleftmargin71px{ margin-left: 71px; } #divleftmargin57px{ margin-left: 57px; } #divleftmargin107px{ margin-left: 107px; } #divleftmargin120px{ margin-left: 120px; } #divleftmargin163px{ margin-left: 155px; } #divleftmargin170px{ margin-left: 170px; } #divleftmargin205px{ margin-left: 205px; } #divleftmargin219px{ margin-left: 219px; } #divleftmargin220px{ margin-left: 220px; } #divleftmargin435px{ margin-left: 435px; } #divleftmargin659px{ margin-left: 659px; } #divleftmargin436px{ margin-left: 436px; } #divleftmargin755px{ margin-left: 755px; } #divleftmargin710px{ margin-left: 710px; } #divleftmargin676px{ margin-left: 666px; } #divleftmargin0px{ margin-left: 0px; } #divleftmargin893px{ margin-left: 893px; } #divleftmargin887px{ margin-left: 887px; } #divleftmargin708px{ margin-left: 708px; } #divleftmargin813px{ margin-left: 813px; } #divleftmargin790px{ margin-left: 790px; } #divleftmargin879px{ margin-left: 879px; } #divleftmargin776px{ margin-left: 776px; } #divleftmargin106px{ margin-left: 106px; }[/code]
  17. how would i get it to stay positioned how i want without having the left: px; command ? Is there another command i can use?
  18. I have tryed the method posted here but im still seeing the same issue it wont align the content to the center. Im new to the css thing so the more detailed an explination the better. I think I understand what was mentioned above but its all still aligned to the left. Could this be due to the (Top: px; Left: px;) commands or am i not wrapping my <div> tags correctly? Would i have to modify all the <div> tags to have an id from the css sheet or no?
  19. I am using the following code and trying to center it in the middle of the page: [code]<html> <head> <title>layout3</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="n2p.css" /> <script type="text/javascript"> <!-- function MM_reloadPage(init) {  //reloads the window if Nav4 resized   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" > <!-- ImageReady Slices (layout3.psd) --> <div id="container" align="center" > <div style="position:absolute; top: 0px;left: 893px;"> <img src="images/layout3_01.jpg" width="7" height="700" border="0" alt=""></div> <div style="position:absolute; top: 0px; left: 7px;"> <img src="images/layout3_02.jpg" width="886" height="11" border="0" alt=""></div> <div style="position:absolute; top: 0px; left: 0px;"> <img src="images/layout3_03.jpg" width="7" height="700" border="0" alt=""></div> <div style="position:absolute; top: ; left: ;top: 50px; left: 10px;"> <img src="images/spacer.gif" width="1" height="11" alt=""></div> <div style="position:absolute; top: 11px; left: 7px;"> <img src="images/layout3_04.jpg" width="701" height="164" alt=""></div> <div style="position:absolute; top: 11px; left: 708px;"> <img src="images/layout3_05.jpg" width="185" height="14" alt=""></div> <div style="position:absolute; top: 24px; left: 708px;"> <img src="images/layout3_06.jpg" width="68" height="18" alt=""></div> <div style="position:absolute; top: 50px; left: 776px;"> <img src="images/layout3_07.jpg" width="103" height="18" alt=""></div> <div style="position:absolute; left: 879px; top: 50px;"> <img src="images/layout3_08.jpg" width="14" height="18" alt=""></div> <div style="position:absolute; top: 42px; left: 708px;"> <img src="images/layout3_09.jpg" width="185" height="8" alt=""> </div> <div style="position:absolute; top: 50px; left: 708px;"> <img src="images/layout3_10.jpg" width="68" height="18" alt=""></div> <div style="position:absolute; top: 24px; left: 776px;"> <img src="images/layout3_11.jpg" width="103" height="18" alt=""></div> <div style="position:absolute; top: 24px; left: 879px;"> <img src="images/layout3_12.jpg" width="14" height="18" alt=""></div> <div style="position:absolute; top: 68px; left: 708px;"> <img src="images/layout3_13.jpg" width="185" height="34" alt=""></div> <div style="position:absolute; top: 102px; left: 708px;"> <img src="images/layout3_14.jpg" width="82" height="17" alt=""></div> <div style="position:absolute; top: 102px; left: 790px;"> <img src="images/layout3_15.jpg" width="23" height="17" alt=""></div> <div style="position:absolute; top: 102px; left: 813px;"> <img src="images/layout3_16.jpg" width="80" height="17" alt=""></div> <div style="position:absolute; top: 119px; left: 708px;"> <img src="images/layout3_17.jpg" width="185" height="56" alt=""></div> <div style="position:absolute; top: 175px; left: 7px;"> <img src="images/layout3_18.jpg" width="886" height="23" alt=""></div> <div style="position:absolute; top: 198px; left: 7px;"> <img src="images/layout3_19.jpg" width="212" height="18" alt=""></div> <div style="position:absolute; top: 198px; left: 219px;"> <img src="images/layout3_20.jpg" width="216" height="18" alt=""></div> <div style="position:absolute; top: 198px; left: 435px;"> <img src="images/layout3_21.jpg" width="224" height="18" alt=""></div> <div style="position:absolute; top: 198px; left: 659px;"> <img src="images/layout3_22.jpg" width="234" height="18" alt=""></div> <div style="position:absolute; top: 216px; left: 7px;"> <img src="images/layout3_23.jpg" width="886" height="3" alt=""></div> <div style="position:absolute; top: 219px; left: 7px;"> <img src="images/layout3_24.jpg" width="213" height="6" alt=""></div> <div style="position:absolute; top: ; left: ;top: 219px; left: 220px;"> <img src="images/layout3_25.jpg" width="216" height="90" alt=""></div> <div style="position:absolute; top: ; left: ;top: 219px; left: 436px;"> <img src="images/layout3_26.jpg" width="223" height="90" alt=""></div> <div style="position:absolute; top: ; left: ;top: 219px; left: 659px;"> <img src="images/layout3_27.jpg" width="234" height="2" alt=""></div> <div style="position:absolute; top: 219px; left: 659px;"> <img src="images/layout3_28.jpg" width="8" height="61" alt=""></div> <div style="position:absolute;top: 221px; left: 667px;"> <img src="images/layout3_29.jpg" width="220" height="47" alt=""></div> <div style="position:absolute; top: 221px; left: 887px;"> <img src="images/layout3_30.jpg" width="6" height="47" alt=""></div> <div style="position:absolute; left: 7px; top: 278px;"> <img src="images/layout3_31.jpg" width="15" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 170px;"> <img src="images/layout3_32.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; left: 106px; top: 225px;"> <img src="images/layout3_33.jpg" width="14" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 120px;"> <img src="images/layout3_34.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 155px;"> <img src="images/layout3_35.jpg" width="14" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 71px;"> <img src="images/layout3_36.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; left: 155px; top: 225px;"> <img src="images/layout3_37.jpg" width="15" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 22px;"> <img src="images/layout3_38.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; top: 225px; left: 205px;"> <img src="images/layout3_39.jpg" width="15" height="31" alt=""></div> <div style="position:absolute; top: 256px; left: 7px;"> <img src="images/layout3_40.jpg" width="213" height="22" alt=""></div> <div style="position:absolute; top: 268px; left: 667px;"> <img src="images/layout3_41.jpg" width="43" height="12" alt=""></div> <div style="position:absolute; top: 268px; left: 710px;"> <img src="images/layout3_42.jpg" width="45" height="12" alt=""></div> <div style="position:absolute; top: 268px; left: 755px;"> <img src="images/layout3_43.jpg" width="138" height="12" alt=""></div> <div style="position:absolute; top: 225px; left: 7px;"> <img src="images/layout3_44.jpg" width="15" height="31" alt=""></div> <div style="position:absolute; top: 225px; left: 170px;"> <img src="images/layout3_45.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; left: 57px; top: 225px;"> <img src="images/layout3_46.jpg" width="14" height="31" alt=""></div> <div style="position:absolute; top: 225px; left: 120px;"> <img src="images/layout3_47.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 107px;"> <img src="images/layout3_49.jpg" width="13" height="31" alt=""></div> <div style="position:absolute; top: ; left: ;top: 225px; left: 71px;"> <img src="images/layout3_50.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 57px;"> <img src="images/layout3_51.jpg" width="15" height="31" alt=""></div> <div style="position:absolute; top: 225px; left: 22px;"> <img src="images/layout3_52.jpg" width="35" height="31" alt=""></div> <div style="position:absolute; top: 278px; left: 205px;"> <img src="images/layout3_53.jpg" width="15" height="31" alt=""></div> <div style="position:absolute; top: 280px; left: 659px;"> <img src="images/layout3_54.jpg" width="234" height="47" alt=""></div> <div style="position:absolute; top: 309px; left: 7px;"> <img src="images/layout3_55.jpg" width="213" height="19" alt=""></div> <div style="position:absolute; top: 309px; left: 220px;"> <img src="images/layout3_56.jpg" width="216" height="19" alt=""></div> <div style="position:absolute; top: 309px; left: 436px;"> <img src="images/layout3_57.jpg" width="223" height="19" alt=""></div> <div style="position:absolute; top: 327; left: 659px;"> <img src="images/layout3_58.jpg" width="234" height="19" alt=""></div> <div style="position:absolute; top: ; left: ;top: 328px; left: 7px;"> <img src="images/layout3_59.jpg" width="652" height="18" alt=""></div> <div style="position:absolute; left: 7px;top: 519px;"> <img src="images/layout3_60.jpg" width="652" height="135" alt=""></div> <div style="position:absolute; top: ; left: ;top: 346px; left: 659px;"> <img src="images/layout3_61.jpg" width="234" height="111" alt=""></div> <div style="position:absolute; top: 457px; left: 659px;"> <img src="images/layout3_62.jpg" width="234" height="19" alt=""></div> <div style="position:absolute; top: ; left: ;top: 476px; left: 659px;"><img src="images/layout3_63.jpg" width="234" height="111" alt=""></div> <div style="position:absolute; left: 7px;top: 656px;"> <img src="images/layout3_64.jpg" width="652" height="19" alt=""></div> <div style="position:absolute; top: ; left: 7px; top: 500px;"> <img src="images/layout3_65.jpg" width="652" height="19" alt=""></div> <div style="position:absolute; left: 7px;top: 346px; left: 7px;"> <img src="images/layout3_66.jpg" width="652" height="137" alt=""></div> <div style="position:absolute; top: ; left: ;top: 587px; left: 659px;"> <img src="images/layout3_67.jpg" width="234" height="19" alt=""></div> <div style="position:absolute; top: 606px; left: 659px;"> <img src="images/layout3_68.jpg" width="234" height="67" alt=""></div> <div style="position:absolute; left: 7px;top: 481px;"> <img src="images/layout3_69.jpg" width="652" height="19" alt=""></div> <div style="position:absolute; left: 7px;top: 673px; left: 7px;"> <img src="images/layout3_70.jpg" width="886" height="27" alt=""></div> <!-- End ImageReady Slices --> </div> </body> </html>[/code] All that happens is that the page stays aligned to the left so i used this css file with it to try and align it to the middle: [code]#container{ margin-left: auto; margin-right: auto; /*Margin left and right set to auto center's our layout*/ text-align: left; /*Resets the text alignment*/ }[/code] Any ideas on why it wont align to the middle? All help is welcome!
  20. Im still getting the same errors could this be due to a serverside confliction?
  21. I revised the code but still get the same error: [quote]Parse error: parse error, unexpected T_BREAK, expecting ',' or ';' in /homepages/34/d154144477/htdocs/ventgaming/n2p/pages.php on line 89[/quote] here is my code atm: [code]<?php include("config/db.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Nothing to Prove - Gaming Organization</title> <meta name="copyright" content="Copyright by VentGaming Code[er]s - All rights reserved." /> <meta name="page-type" content="Info" /> <link rel="stylesheet" href="n2p.css" type="text/css" /> <style type="text/css"> <!-- a:link { color: #000000; text-decoration: none; } a:visited { text-decoration: none; color: #000000; } a:hover { text-decoration: underline; color: #000000; } a:active { text-decoration: none; color: #000000; } --> </style> </head> <body> <?php function getpage($showpage) {     switch ($showpage) { case "home": $sql = "SELECT * FROM `news` order by `id` DESC LIMIT 0,4"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $author = $row['author']; $date = $row['date']; $content = $row['content']; $img = $row['img']; $id = $row['id']; echo <<<BLOCK <table> <tr> <td width="534">$img</td></tr></table> <table> <tr> <td width="395">$title</td> <td width="135">$author Date: $date</td> </tr> </table> <table> <tr> <td width="534">$content</td> </tr> </table> BLOCK; } break; case "achieves": $sql = "SELECT * FROM `news` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $author = $row['author']; $date = $row['date']; $id = $row['id']; echo <<<BLOCK <center> <table width="534"> <tr> <td>$title</td> <td>$author</td> <td>$date</td> </tr> </table></center> BLOCK; } break; case "forum": // print 'The forums section is currently under development please check back later.'; break; // <<<----- Still getting error here case "roster": break; case "matches": $sql = "SELECT * FROM `matches` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $opponent = $row['opponent']; $description = $row['description']; $date = $row['date']; $score_one = $row['score_one']; $score_one = $row['score_one']; $id = $row['id']; echo <<<BLOCK <center> <table width="534" bgcolor="#000000"> <tr> <td bgcolor="#000000"><font color="#FFFFFF"> $id </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $opponent </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $description </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $date </font></td> <td bgcolor="#000000"><font color="#00FF00"> $score_one </font><font color="#FFFFFF"> - </font><font color="#FF0000"> $score_two </font></td> </tr> </table></center> BLOCK; } break; case "media": $sql = "SELECT * FROM `media` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $description = $row['description']; $date = $row['date']; $id = $row['id']; echo <<<BLOCK <center> <table width="534" bgcolor="#000000"> <tr> <td bgcolor="#000000"><font color="#FFFFFF"> $id </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $title </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $description </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $date </font></td> </tr> </table></center> BLOCK; } break; case "proshop": $sql = "SELECT * FROM `proshop` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $img = $row['img']; $title = $row['name']; $manufacturer = $row['manufacturer']; $description = $row['description']; $price = $row['price']; $id = $row['id']; echo <<<BLOCK <center> <table width="534" bgcolor="#000000"> <tr> <td bgcolor="#000000"><font color="#FFFFFF"> $img </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $name </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $manufacturer </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $description </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> $price </font></td> </tr> </table></center> BLOCK; } break; case "lessons": echo <<<BLOCK <center><table width="534" bgcolor="#CCCCCC"> <tr> <td></td> <td bgcolor="#CCCCCC"><font id=text/>Game</td> <td bgcolor="#CCCCCC"><font id=text/>Teacher</td> <td bgcolor="#CCCCCC"><font id=text/>Price Per Hour</td> </tr> BLOCK; $sql = "SELECT * FROM `lessons` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $img = $row['img']; $game = $row['game']; $teacher = $row['teacher']; $price = $row['price']; $id = $row['id']; echo <<<BLOCK <tr> <td bgcolor="#CCCCCC"><font id=text/> $img </td> <td bgcolor="#CCCCCC"><font id=text/> $game </td> <td bgcolor="#CCCCCC"><font id=text/> $teacher </td> <td bgcolor="#CCCCCC"><font id=text/> $price </td> <td bgcolor="#CCCCCC"><font id=text/><a href="order.php?page=lessons">Order</a></td> BLOCK; } echo <<<BLOCK </table></center> BLOCK; break; case "demos": echo <<<BLOCK <table bgcolor="#CCCCCC"><tr> <td bgcolor="#CCCCCC"><font id=text/>Title</td> <td bgcolor="#CCCCCC"><font id=text/>Description</td> <td bgcolor="#CCCCCC"><font id=text/>Length</td> <td bgcolor="#CCCCCC"><font id=text/>Size</td> <td bgcolor="#CCCCCC"><font id=text/>Download</td> </tr> BLOCK; $sql = "SELECT * FROM `demos` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $description = $row['description']; $length = $row['length']; $size = $row['size']; $id = $row['id']; echo <<<BLOCK <table><tr> <td bgcolor="#CCCCCC"><font id=text/> $title </td> <td bgcolor="#CCCCCC"><font id=text/> $decription </td> <td bgcolor="#CCCCCC"><font id=text/> $length </td> <td bgcolor="#CCCCCC"><font id=text/> $size </td> <td bgcolor="#CCCCCC"><font id=text/><a href="download.php?get=$id">Download</td> </tr></table> BLOCK; } break; case "gallery": break; case "sponsors": echo ''; break; case "aboutus": echo <<<BLOCK <table width="535"><font id="text" />n2p is a gaming organization established in 1999. Over time we have become one of the most respected organizations in the gaming community. We have big plans ahead and are always looking for those who support us to continue to support us.</table> BLOCK; break; } } getpage($_GET['page']); ?> </body> </html> [/code]
  22. I did it is commented next to the line "// <<<<---------------------- Line 89"
  23. Here is the error im getting: [quote]Parse error: parse error, unexpected T_BREAK, expecting ',' or ';' in /homepages/34/d154144477/htdocs/ventgaming/n2p/pages.php on line 89[/quote] Here is the script im using: [code]<?php include("config/db.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Nothing to Prove - Gaming Organization</title> <meta name="copyright" content="Copyright by VentGaming Code[er]s - All rights reserved." /> <meta name="page-type" content="Info" /> <link rel="stylesheet" href="n2p.css" type="text/css" /> <style type="text/css"> <!-- a:link { color: #000000; text-decoration: none; } a:visited { text-decoration: none; color: #000000; } a:hover { text-decoration: underline; color: #000000; } a:active { text-decoration: none; color: #000000; } --> </style> </head> <body> <?php function getpage($showpage) {     switch ($showpage) { case "home": $sql = "SELECT * FROM `news` order by `id` DESC LIMIT 0,4"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $author = $row['author']; $date = $row['date']; $content = $row['content']; $img = $row['img']; $id = $row['id']; echo '<table> <tr> <td width="534">'. $img .'</td></tr></table> <table> <tr> <td width="395">'. $title .'</td> <td width="135">'. $author .' Date: '. $date .'</td> </tr> </table> <table> <tr> <td width="534">'. $content .'</td> </tr> </table>'; } break; case "achieves": $sql = "SELECT * FROM `news` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $author = $row['author']; $date = $row['date']; $id = $row['id']; echo '<center> <table width="534"> <tr> <td>'. $title .'</td> <td>'. $author .'</td> <td>'. $date .'</td> </tr> </table></center>'; } break; case "forum": echo 'The forums section is currently under development please check back later.'; break; // <<<<---------------------- Line 89 case "roster": break; case "matches": $sql = "SELECT * FROM `matches` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $opponent = $row['opponent']; $description = $row['description']; $date = $row['date']; $score_one = $row['score_one']; $score_one = $row['score_one']; $id = $row['id']; echo '<center> <table width="534" bgcolor="#000000"> <tr> <td bgcolor="#000000"><font color="#FFFFFF"> '. $id .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $opponent .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $description .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $date .' </font></td> <td bgcolor="#000000"><font color="#00FF00"> '. $score_one .'</font><font color="#FFFFFF"> -</font><font color="#FF0000"> '. $score_two .' </font></td> </tr> </table></center>';} break; case "media": $sql = "SELECT * FROM `media` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $description = $row['description']; $date = $row['date']; $id = $row['id']; echo '<center> <table width="534" bgcolor="#000000"> <tr> <td bgcolor="#000000"><font color="#FFFFFF"> '. $id .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $title .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $description .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $date .' </font></td> </tr> </table></center>';} break; case "proshop": $sql = "SELECT * FROM `proshop` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $img = $row['img']; $title = $row['name']; $manufacturer = $row['manufacturer']; $description = $row['description']; $price = $row['price']; $id = $row['id']; echo '<center> <table width="534" bgcolor="#000000"> <tr> <td bgcolor="#000000"><font color="#FFFFFF"> '. $img .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $name .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $manufacturer .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $description .' </font></td> <td bgcolor="#000000"><font color="#FFFFFF"> '. $price .' </font></td> </tr> </table></center>';} break; case "lessons": echo '<center><table width="534" bgcolor="#CCCCCC"> <tr> <td></td> <td bgcolor="#CCCCCC"><font id=text/>Game</td> <td bgcolor="#CCCCCC"><font id=text/>Teacher</td> <td bgcolor="#CCCCCC"><font id=text/>Price Per Hour</td> </tr>'; $sql = "SELECT * FROM `lessons` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $img = $row['img']; $game = $row['game']; $teacher = $row['teacher']; $price = $row['price']; $id = $row['id']; echo '<tr> <td bgcolor="#CCCCCC"><font id=text/>'. $img .'</td> <td bgcolor="#CCCCCC"><font id=text/>'. $game .'</td> <td bgcolor="#CCCCCC"><font id=text/>'. $teacher .'</td> <td bgcolor="#CCCCCC"><font id=text/>'. $price .'</td> <td bgcolor="#CCCCCC"><font id=text/><a href="order.php?page=lessons">Order</a></td>';} echo '</table></center>'; break; case "demos": echo '<table bgcolor="#CCCCCC"><tr> <td bgcolor="#CCCCCC"><font id=text/>Title</td> <td bgcolor="#CCCCCC"><font id=text/>Description</td> <td bgcolor="#CCCCCC"><font id=text/>Length</td> <td bgcolor="#CCCCCC"><font id=text/>Size</td> <td bgcolor="#CCCCCC"><font id=text/>Download</td> </tr>'; $sql = "SELECT * FROM `demos` order by `id`"; $result  = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $title = $row['title']; $description = $row['description']; $length = $row['length']; $size = $row['size']; $id = $row['id']; echo '<table><tr> <td bgcolor="#CCCCCC"><font id=text/>'. $title .'</td> <td bgcolor="#CCCCCC"><font id=text/>'. $decription .'</td> <td bgcolor="#CCCCCC"><font id=text/>'. $length .'</td> <td bgcolor="#CCCCCC"><font id=text/>'. $size .'</td> <td bgcolor="#CCCCCC"><font id=text/><a href="download.php?get=$id">Download</td> </tr></table>'; } break; case "gallery": break; case "sponsors": echo ''; break; case "aboutus": echo '<table width="535"><font id="text" />n2p is a gaming organization established in 1999. Over time we have become one of the most respected organizations in the gaming community. We have big plans ahead and are always looking for those who support us to continue to support us.</table>'; break; } } getpage($_GET['page']); ?> </body> </html> [/code] Any help is appreciated
  24. I tested that and that was not the problem I am still getting  the following error: [quote]Parse error: parse error, unexpected $ in /homepages/34/d154144477/htdocs/ventgaming/n2p/loginscript/action.php on line 62[/quote] Here is action.php file: [code] <?php session_start(); header("Cache-control: private"); if ($_SESSION['auth'] == false) {        echo "Please login before tyring to access this area";     include("index.php"); /*you need to add some kind of if statement that will redirect users that are not loged in to the login page. You can change ['username'] to what ever you use for sessions*/ }else{ include("config/db.php"); function getpage($act) {     switch ($act) {         case "user_profile": $steamid = $_POST['steamid']; $handle = $_POST['handle']; $team_name = $_POST['team_name']; $team_tag = $_POST['team_tag']; # out with any unwanted characters $steamid = stripslashes($steamid); $handle = stripslashes($handle); $team_name = stripslashes($team_name); $team_tag = stripslashes($team_tag); # insert data into database $info2 = htmlspecialchars($info); $sql = mysql_query("UPDATE users SET steamid='$steamid', handle='$handle', team_name='$team_name', team_tag='$team_tag' WHERE id='$id'") or die (mysql_error()); if(!$sql){ echo '<font id=UserNameRed />There has been an error entering the data. Please contact the webmaster.'; }else{ echo '<font id=UserNameRed />The data was entered successfully.'; }         break;         case "add_news": $author = $_SESSION['user']; $title = $_POST['title']; $ndate = $_POST['date']; $news = $_POST['news']; # out with any unwanted characters $title = stripslashes($title); $ndate = stripslashes($ndate); $news = stripslashes($news); # insert data into database $description2 = htmlspecialchars($description); $sql = mysql_query("INSERT INTO news (date, author, title, news) VALUES ('$ndate','$author','$title','$news')") or die (mysql_error()); if(!$sql){ echo '<font id=UserNameRed />There has been an error entering the data. Please contact the webmaster.'; }else{ echo '<font id=UserNameRed />The data was entered successfully.'; } break;     } } getpage($_GET['act']);// this needs to be the same as the switch statement and the start of the function ?>[/code]
  25. No that didnt fix it is there something else that is wrong in it? Anyone care to comment?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.