jwilh Posted November 6, 2006 Share Posted November 6, 2006 [code]<p style="color:White"><div ALIGN=CENTER><h3><?phpif (isset($_POST['name'])){ echo "Welcome <B>$_POST[name] !</B>\n";};?></p></div></h3>[/code]I have messed around with this for awhile and I cant figure it out. The color will not show up white like I want it to. All my other codes that are written like this show up just fine so what could be the problem with this one? Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/ Share on other sites More sharing options...
cunoodle2 Posted November 6, 2006 Share Posted November 6, 2006 You most likely have a style sheet or something that is overwriting this white color. Try putting that tage INSIDE of the "<B>" tags to see if that helps the situation. If not please run the script on your site, view the source, and then paste that into here so that we can see the actual script that php is writing out. Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120189 Share on other sites More sharing options...
jwilh Posted November 6, 2006 Author Share Posted November 6, 2006 Ok that did not work, so here is all the code. WARNING: Kinda Messy ;D[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Sic-Site Testing</title></head><body background="/php/upload/backtile.gif"><DIV ALIGN=CENTER><img src="/php/upload/Default.jpg"></DIV><div ALIGN=CENTER><img src="/php/image.php" border="1"></div> <div ALIGN=RIGHT><p style="color:White"><i> <?phpecho date("d M Y"); echo "<br>"; $d=date("D"); if ($d=="Fri") echo "Have a nice weekend!"; else echo "Have a nice day!"; echo "<BR>";?> </p></div></i><p style="color:White"><div ALIGN=CENTER><h3><?phpif (isset($_POST['name'])){ echo "Welcome <B>$_POST[name] !</B>\n";};?></p></div></h3><form name="myName" action="" method="post"><p style="color:White">Name: </p><input type="text" name="name" value="" /><br /><input type="submit" name="submit" value="Submit" /></form><br><BR><br><BR><br><BR><form action="upload_file.php" method="post"enctype="multipart/form-data"><label for="file"><p style="color:White">Filename:</p></label><input type="file" name="file" id="file" /> <br /><input type="submit" name="submit" value="Submit" /></form></p></body></html>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120192 Share on other sites More sharing options...
cunoodle2 Posted November 6, 2006 Share Posted November 6, 2006 What is the html from the page? Not your php source code. Like open the page in a web browser and then hit view source. Then paste THAT into here. Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120195 Share on other sites More sharing options...
jwilh Posted November 6, 2006 Author Share Posted November 6, 2006 the html is in there lol, that is all of it. but i will give u only the html if thats what u want :)[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Sic-Site Testing</title></head><body background="/php/upload/backtile.gif"><DIV ALIGN=CENTER><img src="/php/upload/Default.jpg"></DIV><div ALIGN=CENTER><img src="/php/image.php" border="1"></div> <div ALIGN=RIGHT><p style="color:White"><i> 06 Nov 2006<br>Have a nice day!<BR> </p></div></i><p style="color:White"><div ALIGN=CENTER><h3></p></div></h3><form name="myName" action="" method="post"><p style="color:White">Name: </p><input type="text" name="name" value="" /><br /><input type="submit" name="submit" value="Submit" /></form><br><BR><br><BR><br><BR><form action="upload_file.php" method="post"enctype="multipart/form-data"><label for="file"><p style="color:White">Filename:</p></label><input type="file" name="file" id="file" /> <br /><input type="submit" name="submit" value="Submit" /></form></p></body></html>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120197 Share on other sites More sharing options...
jwilh Posted November 6, 2006 Author Share Posted November 6, 2006 Anybody else have any ideas lol Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120204 Share on other sites More sharing options...
.josh Posted November 6, 2006 Share Posted November 6, 2006 that html source in and of itself produces white text for me..p.s.- moving to the proper forum. Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120210 Share on other sites More sharing options...
jwilh Posted November 6, 2006 Author Share Posted November 6, 2006 That is strange, if you visit: http://www.sic-site/php/Ip.php and type in your name, when it echos it to the screen it appears black.Note: Sorry for posting this in the wrong section, I figured it was more a problem with my php than my html :) Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120334 Share on other sites More sharing options...
KevinM1 Posted November 6, 2006 Share Posted November 6, 2006 Why do you have a php file as a source in your second image tag? Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120369 Share on other sites More sharing options...
Zane Posted November 6, 2006 Share Posted November 6, 2006 [code]<div ALIGN=RIGHT><p style="color:White"><i> 06 Nov 2006<br>Have a nice day!<BR> </p></div></i>[/code]NOTICE you're closing the italics tag AFTER you close everything elseprobably has a lot to do with it [code]<div ALIGN=RIGHT><p style="color:White"><i> 06 Nov 2006<br>Have a nice day!<BR> </i><!-- Close the Italics tag beforehand --></p></div>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120378 Share on other sites More sharing options...
jwilh Posted November 6, 2006 Author Share Posted November 6, 2006 [quote author=Nightslyr link=topic=113961.msg463670#msg463670 date=1162828415]Why do you have a php file as a source in your second image tag?[/quote]because its an image, visit the site and you will see that is what displays the ip addy Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120400 Share on other sites More sharing options...
fenway Posted November 6, 2006 Share Posted November 6, 2006 If the above suggestions don't remedy the situation, try using the code snippets provided on a "clean" page. Quote Link to comment https://forums.phpfreaks.com/topic/26280-why-wont-this-work/#findComment-120457 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.