Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    77
    Member #
    14004
    Hello
    Anyone could help me with this one please?
    I have a PHP script which will load on a page named index.html

    The script body starts like this:
    <body>
    .................................................. ....
    {Header}
    <br><br>
    <table width="750" border="0">
    <tr>
    <td></td
    </tr></table>
    {Footer}
    .................................................. ....
    </body>
    </html>


    The Header, Footer and the table I would like to put in another table 95% width with a border “1”. I tried to put this table (<table width="95%" border="1" bordercolor="#CCCCCC" align="center">) where the doted lines are now but it didn’t work.
    Any idea how I could make this one?
    Thanks a lot for helping



  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Hey, I am not sure if where it says {Header} and {Footer} you want that text to stay there, or if it's just where you think your table tag should go, so I kept it in.

    HTML Code:
    <html>
    
    <head>
    
    <style type="text/css" media="all">
    
    table.mainT
     {
    	width: 95%;
    	border: 1px solid black;
     }
    
    </style>
    
    </head>
    
    <body>
    
    <table class="mainT">
    	<tr>
    		<td width="100%">
    			{Header}
    			<br><br>
    			<table width="750" border="0">
    				<tr>
    					<td>lorem ipsum, im your content</td>
    				</tr>
    			</table>
    			{Footer}
    		</td>
    	</tr>
    </table>
    </body>
    </html>
    The outer table has the border, not the inner.

    Not sure if thats what you meant.

  4. #3
    Senior Member simpleurl's Avatar
    Join Date
    Jul 2006
    Location
    Leicester, UK.
    Posts
    150
    Member #
    13598
    Also you need to name the page index.php for it to work with php.

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,715
    Member #
    5580
    Liked
    717 times
    Are you trying to include another section of text from another file?

    oh, and yes, you need to have the extension .php (index.php).


  6. #5
    Member
    Join Date
    Sep 2006
    Posts
    77
    Member #
    14004
    Wow :-)
    It works now with the code you sent me Bfsog. Thank you very much, also to all others for good tips.

    One more question, I didn’t understand why in the HTML code of my file (originally named index.html) there is an “index” word completely separated from the href link.
    Is it normal?

    <a href="page.php?name=help index" class="link2">

  7. #6
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Erm, we cannot be sure what you tried to code.. but I don't think you meant to code that..

    You have gave the link a parameter, and having spaces in a link is a bad idea, so we can only assume there should not be a space in between 'help' and 'index'

    So maybe it should look like:
    HTML Code:
    <a href="page.php?name=helpindex" class="link2">link text</a>
    <!-- OR -->
    <a href="page.php?name=help_index" class="link2">link text</a>
    <!-- OR -->
    <a href="page.php?name=help" class="link2">link text</a>
    Not sure though.

  8. #7
    Member
    Join Date
    Sep 2006
    Posts
    77
    Member #
    14004
    Hi everyone,
    Actually there was something strange here- index shouldn't exist at all.
    Thanks for message and correction.

    :-)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:13 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com