Jump to content

redundant problem


sama

Recommended Posts

Hello forum

I have this problem, & I face it a lot :shrug:

I have this template:

 

<!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>Remote Networking Lab</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
.style7 {
font-size: 14px;
color: #000000;
}
.style8 {font-size: 16px}
.style9 {
font-size: 18px;
color: #0000FF;
font-weight: bold;
}
.style10 {
font-size: 18px;
color: #0000CC;
}
-->
</style>
</head>

<body>

<center>
<!--main-div-->
<div id="main">

<!--logo-div-->
<div id="logo">
		<div id="commonblockone"></div>
			<div id="commonblocktwo">
					<div id="link2">
						<ul>
						<li><a href="Login.php">Home </a></li>
						<li><a href="index7.htm">Blog</a></li>
						<li><a href="../Experiments/Experiments.html">Experiments</a></li>
                            <li><a href="../Tools/Tools.html">Tools</a></li>
						<li><a href="index.php">Forum</a></li>
						<li><a href="subpage.html">Chat</a></li>
                            <li><a href="../Email/contact.php">Contact Us</a></li>
					  </ul>
					</div>
  			</div>
</div>
<!--logo-div-end-->

<!--header-div-->
<div id="header">
  <div style="float:left;border:0px red solid"><img src="../images/purestock_1574r-02037a.jpg" /></div>
  <div style="float:left;width:px;padding-left:50px;">
          <div style="height:32px"></div>
          <div align="center"> <img src="../images/smsm5.png" alt="" width="500" height="180" /></div>
          <div></div>
  </div>
</div>
/*  I insert the code HERE*/

<!--footer-div-->
<p>  </p>
    <div style="width:981px; background-color:#FFFFCC;">
	<div id="footer">

        <div><font class="footertext" >Copyright © 2010<a href="#" class="footertext2"> </a><a href="#" class="footertext2"></a></font>		        
            </div>
	</div>
</div>

<!--footer-div-end-->
</div>
<!--main-div-end-->
</center>
</body>
</html>

 

when I want to put something inside it, like this one:

 

<?php

session_start();

if ($_SESSION['auth']=="yes")
{
echo " For the User : {$_SESSION[user]} <br>  Your Reservation time start in : {$_SESSION['Time'] }";
}

?>

 

nothing appear... where is the problem? please help me....I need help :-[

Link to comment
Share on other sites

hello

thanks for your quick replies.

when I run the code without inserting it in the middle of the template, like this only:

 

<?php

session_start();

if ($_SESSION['auth']=="yes")
{
echo " For the User : {$_SESSION[user]} <br>  Your Reservation time start in : {$_SESSION['Time'] }";
}

?>

 

everything works good...the output is (for example):

 

For the User : ewqr

Your Reservation time start in : 2010-03-10 14:00:00

 

but when I put the code between the header div & the footer div, only the template appears!! nothing printed about the user & no echo is executed.. where is the mistake?? :confused:

Link to comment
Share on other sites

As in when you view the HTML source, is the PHP output there? By masked I meant defective CSS forcing the header or footer to literally cover up - mask - the output.

 

Did you even try ignace's suggestion?

Link to comment
Share on other sites

hello MrAdam

you are right. I replace the php code with the following:

 

<?php
echo "Hello";
?>

 

and nothing appears. only the template and a space between the header & the footer. what can I do to solve this problem??

Link to comment
Share on other sites

Then it is most presumably that PHP isn't installed or an incorrect extension (.html instead of .php) as PHP then is recognized as HTML due to the < and > and therefor hidden.

 

Right click on your web-page and select View Source and go through it you'll find:

 

<?php .. ?>

Link to comment
Share on other sites

hello iganc

everything is OK. PHP is installed & the extention is (.php)

I run many scripts & everything is good, but when I put the php code inside the html code, nothing appears, just the html & a space indicating that something is their but invisible.

help me. I think the problem is simple.  :confused:

thanks a lot

Link to comment
Share on other sites

It may be that you have the text color the same as your body color. You may want to check that out.

 

Hello hcdarkmage..thanks for the replay..

 

I feel that. how can I change the color of the text, the radio button caption and so on??

because in another script, the radio buttons appear but the text (the radio button caption) beside it don't.

:-\

 

Link to comment
Share on other sites

Check your CSS file. I see that you are pulling one. All you have to do is see if there is a

body {
    color: #000000;
}

or something similar in the CSS file.

 

hello hcdarkmage

yes there is... I change it to another value but nothing happened ... :shrug:

Link to comment
Share on other sites

Check your CSS file. I see that you are pulling one. All you have to do is see if there is a

body {
    color: #000000;
}

or something similar in the CSS file.

 

That will take a long time! Do you use Firefox? And do you have Firebug installed? If not go to Extra > Add-Ons search for Firebug and install it and restart Firefox. Once Firefox starts again and opens your previous tabs press F12 on your page, click on the arrow on the left-top (next to the bug) move over your page with your mouse (blue borders will appear) to where your text should come, the styles rules for that area appear in the box on the right, click and scroll through it, double-click on a value to change it.

Link to comment
Share on other sites

Dear  hcdarkmage + ignace

 

Thank you soooooooo much...  :D

 

;D everything is OK now... thanks for your time & your helpful spirit..

 

sama

 

Don't forget MrAdam :)

 

Ha, thank you ignace.

Link to comment
Share on other sites

Dear  hcdarkmage + ignace

 

Thank you soooooooo much...  :D

 

;D everything is OK now... thanks for your time & your helpful spirit..

 

sama

 

Don't forget MrAdam :)

 

Ha, thank you ignace.

 

Credit is due where credit is due, we all have helped so if she's to name names she might as well mention everyone.

Link to comment
Share on other sites

sorry  ;)

Thank you MrAdam  :)

 

But still I don't know how to save the effects that I change in firebug. whenever I run the script, I should change the color value ??!!

 

Thank you all for your support.. sorry for being late..

Link to comment
Share on other sites

Firebug is only ever temporary. ignace was just suggesting to use it as a way to view the styles applied to the output text (i.e. to check if the colour is white on white background).

 

If you provide a screen shot with the text selected with the 'inspect element' tool we should be able to tell you what's wrong; or even better a URL to a version available on the internet.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.