Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 mattssi

mattssi
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 August 2006 - 12:36 AM

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...nsitional.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!

#2 Tandem

Tandem
  • Members
  • PipPipPip
  • Advanced Member
  • 251 posts

Posted 30 August 2006 - 12:39 AM

Might be because you left the '<' off of the closing title tag.

#3 mattssi

mattssi
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 August 2006 - 12:49 AM

Might be because you left the '<' off of the closing title tag.


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

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 30 August 2006 - 12:55 AM

tested
please watch your sercuty methods  or your be hacked always set a condition within the link ok.

shirt_result.php
<?php

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

$shirt=$_GET['shirt'];

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

}

?>

shirt.php
<?php

$shirt="shirt0001";

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

?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users