Jump to content

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


mattssi

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!
Link to comment
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.
Link to comment
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]
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.