for some reason, php pages on my host when they exceed a few ks, they hang and I eventually get a page cannot be displayed. But ONLY when I'm browsing on the mac.
Any ideas why?
Thanks
Ok Here's the File. I'm new at php so maybe I'm doing something wrong but I don't think so.
It is Located at www.danleroux.com/temp.php. Give it a go on a mac and let me know if it works for you.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>temp</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<?
function checkCheck($which,$value){
if(isset($POST[$which]) && $POST[$which]==$value){
return "checked = \"checked\"";
}
}
function checkDone(){
if(isset($_POST['submit'])){
if(count($_POST)<11){
return "please complete all the questions";
}else{
$Total = 0;
foreach($_POST as $Key=>$Val){
if(is_numeric($Val)){
$Total = $Total + $Val;
}
}
if($Total>=10 && $Total<=15){
return("Bla");
}elseif($Total>=15 && $Total<=25){
return("Bla");
}elseif($Total>=25 && $Total<=35){
return("Bla");
}elseif($Total>=35 && $Total<=40){
return("Bla");
}
}
}
}
?>
</head>
<body>
<div id="container">
<div id="top"></div>
<div id="lcol"></div>
<div id="main">
<div id="header">
<div id="title"><h1><span></span>My Header</h1></div>
<div id="slogan"><h2><span></span>My Slogan</h2></div>
<div class="spacer"> </div>
</div>
<ul id="nav">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="resources.html">Resources</a></li>
</ul>
<div id="content">
<? echo checkDone() ?>
<form action="lighterside.php" method="post">
<ol id="questions">
<li>my Question
<dl id="answers">
<dt><input type="radio" value="1" name="one" <?echo checkCheck("one","1") ?> /></dt>
<dd>Answer 1</dd>
<dt><input type="radio" value="2" name="one" <?echo checkCheck("one","2") ?> /></dt>
<dd>Answer 2</dd>
<dt><input type="radio" value="3" name="one" <?echo checkCheck("one","3") ?> /></dt>
<dd>Answer 3</dd>
<dt><input type="radio" value="4" name="one" <?echo checkCheck("one","4") ?> /></dt>
<dd>Answer 4</dd>
</dl>
</li>
<li>my Question 2
<dl id="answers">
<dt><input type="radio" value="1" name="two" <?echo checkCheck("two","1") ?> /></dt>
<dd>Answer 1</dd>
<dt><input type="radio" value="2" name="two" <?echo checkCheck("two","2") ?> /></dt>
<dd>Answer 2</dd>
<dt><input type="radio" value="3" name="two" <?echo checkCheck("two","3") ?> /></dt>
<dd>Answer 3</dd>
<dt><input type="radio" value="4" name="two" <?echo checkCheck("two","4") ?> /></dt>
<dd>Answer 4</dd>
</dl>
</li>
</ol>
<input type="submit" name="submit" value="submit" class="submit" />
</form>
</div>
<div id="footernav">
<a href="index.html">home</a> | <a href="about.html">about us</a> | <a href="contact.html">contact us</a> | <a href="faq.html">faq</a> | <a href="services.html">service</a> | <a href="resources.html">resources</a>
</div>
</div>
<div id="rcol"></div>
<div id="bottom"></div>
</div>
<div id="footer">
<p id="copy">©</p>
<p id="credit">website by me</p>
<div class="spacer"> </div>
</div>
</body>
</html>