Forum Moderators: open
{
img: {
src: 'GENERATEDIMGSRC',
alt: 'World Map'
}
}
if (isset($_POST['angola'])) {
$angola = $_POST['angola'];
if ($angola == 'angola_visited') {
$angola_color = imagecolorallocate($im, 57, 150, 6);
imagefill($im, 709, 421, $angola_color);
$angola = 'checked';
}
}
<input type="checkbox" onclick="testnewgood.php" name="angola" value="angola_visited"/> [edited by: Fotiman at 5:23 pm (utc) on Apr 12, 2010]
[edit reason] No URLs please. See TOS [webmasterworld.com] [/edit]
$angola = 'checked';
$algeria = 'unchecked';
$angola = 'unchecked';
$botswana = 'unchecked';
<br><input type='checkbox' name='angola' value='angola_visited' <?php print $angola; ?> >Angola
<input type="checkbox" onclick="location='testnewgood2.php';"
<form action="testnewgood2.php" method="post">
<div>
...
<input type="checkbox" onchange="this.form.submit();" name="angola" value="angola_visited"/>
...
</div>
</form>
if (isset($_POST['submit1'])) {
if (isset($_POST['angola'])) {
$angola = $_POST['angola'];
if ($angola == 'angola_visited') {
$angola_color = imagecolorallocate($im, 57, 150, 6);
imagefill($im, 709, 421, $angola_color);
$angola = 'checked';
}
}
}
if (isset($_POST['submit1'])) {
if (isset($_POST['angola'])) {
<input type="image" usemap
,
<form action="where.php" method="post">
<div>
<input type="image" src="world_map2.png" alt="" usemap="#world_map2" style="border-style:none">
</div>
<div>
<map id="world_map2" name="world_map2">
<area shape="poly" alt=""
coords="392,154,333,201,315,220,312,246,302,232,
269,226,256,230,244,237,233,228,222,224,212,
217,196,219,181,213,168,203,166,191,172,172,
181,160,192,152,202,146,214,146,223,146,230,
146,236,146,240,146,246,146,253,146,262,146,
274,146,298,146,314,177" href="albania.php" title="">
<area shape="poly" alt=""
coords="445,106,461,146,379,153,319,173,309,161,
304,139,259,139,249,139,241,139,231,139,219,
139,205,139,192,132,191,118,196,104,183,94,
193,83,203,75,211,69,218,64,225,60,235,62,242,
62,248,60,256,58,307,40,421,20,486,12,461,18,
446,58" href="albania.php" title="">
<area shape="default" nohref="nohref" alt="">
</map>
</div>
</form>
[edited by: Fotiman at 2:17 pm (utc) on Apr 14, 2010]
[edit reason] Formatting [/edit]
<div id="world_image">
<img alt='world map' src='world_map2_users_copy.png?x=<?=time()?>' style="width: 800px; height: 350px">
</div></td>
function seen_united_states(){
/usr/bin/mogrify -fill "#FF0000" -draw "color 22, 266 floodfill" world_map2_users_copy.png;
}
function seen_united_states() {
var xhr = getXHR(); // * See note below
xhr.open("GET", url, true); // ** See note below
xhr.onreadystatechange = function () {
// The mogrify function has been called
};
xhr.send(null);
}
;frames['I2'].location.href='new.htm#world_image';