Thread: isset trouble
View Single Post
Old 07-23-2002, 06:46 PM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,736
redhead is on a distinguished road
Why not have:
PHP Code:
<?php
echo "<html><body><!-- other settings -->";
if (isset(
$clicked) && $value == "1"){
mysql_query("INSERT INTO popfiller (desc) VALUES ('$desc')");
$cell1 "yes";
}
if (isset(
$cell1)){
echo 
"this will dissapear";
}
echo 
"
Other html part of the page...
"
;
if (isset(
$clicked) && $value == "1"){
mysql_query("INSERT INTO popfiller (desc) VALUES ('$desc')");
$cell2 "yes";
}
if (isset(
$cell2)){
echo 
"when this appears";
}
Since if you have the <html> in the ----HTML HERE--- it will send a header to the browser, instructing it to expect the rest of the page as HTML where the "this will.." part is expected as raw text.

Since we know, every thing send from the page, is as html, we might aswell instruct the viewer that this will be html, and avoid any possible error in that part.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote