Jump to content

Archived

This topic is now archived and is closed to further replies.

mattssi

echo does not output value to IE, but it appears in "View Source" n works in FF

Recommended Posts

I'm new to PHP... (of course)

Should be, to me, simple code...

<!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>Shirt Detail/title>
<link href="../stupidsock_default.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?
$shirt = $_GET['shirt'];
echo $shirt;
?>


</body>
</html>





This works fine in FireFox, but does not output anything in IE.  Although, if you view the source in IE, you can see the output in the HTML.

The page that is calling this page is  display.php?shirt=shirt001            so, it should display shirt001 in the browser window.

Any help please?  I'm not sure if this is one of the "buffer" issues I've seen.  I wouldn't know how to apply the answer to my situation anyway.

Thanks!

Share this post


Link to post
Share on other sites
[quote author=Tandem link=topic=106168.msg424389#msg424389 date=1156898376]
Might be because you left the '<' off of the closing title tag.
[/quote]

OMG man, thanks.  Another set of eyes is very helpful.  I've been looking at this thing forever and didn't even notice this.

Share this post


Link to post
Share on other sites
tested
please watch your sercuty methods  or your be hacked always set a condition within the link ok.

shirt_result.php
[code]
<?php

if($_GET['show']=='me'){

$shirt=$_GET['shirt'];

echo " this is the order number of the shirt you wanted ref:$shirt";

}

?>
[/code]

shirt.php
[code]
<?php

$shirt="shirt0001";

echo"<a href='shirt_result.php?shirt=$shirt&show=me'>get the shirt</a>";

?>
[/code]

Share this post


Link to post
Share on other sites

×

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.