Jump to content


Photo

echo php script


  • Please log in to reply
2 replies to this topic

#1 professor_z

professor_z
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 10 March 2006 - 05:42 AM

I'm having trouble with this code

echo '<html>
<head>
<title>File Download</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="<?php echo($wait); ?>; url=index.php?get=<?php echo($get); ?>&send">

My page doesn't load anything



#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 10 March 2006 - 08:01 AM

try

<?php
echo '<pre>';

echo htmlentities('<html>
<head>
<title>File Download</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="<?php echo($wait); ?>; url=index.php?get=<?php echo($get); ?>&send">');

echo '</pre>';
?>

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 professor_z

professor_z
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 10 March 2006 - 08:32 AM

Cheers Barand,

It didn't work, however when I took off the <php? it shows up as text on the page.

Any other suggestions? appreciate it as is, cheers!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users