[eluser]R. Oerlemans[/eluser]
Hi There,
When I was working there was a weird form bug, it worked in Safari & Firefox, but won't work in IE6(and 7).
This is my view:
Code:
<?php
if( isset($_POST['submit'])){
$in = "on";
$tp = $this->input->post('telefoon');
$tv = $this->input->post('televisie');
$geenvoorkeur = $this->input->post('geenvoorkeur');
$bedrag = $this->input->post('bedrag');
echo $in."<br />";
echo $tp."<br />";
echo $tv."<br />";
echo $geenvoorkeur."<br />";
if($tv == "on" AND $in == "on" AND $tp == "on"){
$type = 4;
}elseif($tv == "on" AND $in == "on" AND $tp != "on"){
$type = 3;
}elseif($tv != "on" AND $in == "on" AND $tp == "on"){
$type = 2;
}elseif($tv != "on" AND $in == "on" AND $tp != "on"){
$type = 1;
}else{
$type = NULL;
}
}else{
$type=1;
$geenvoorkeur = FALSE;
$bedrag ="";
}
$cookie = $type;
if($this->uri->segment(2) == "providers" AND $this->uri->segment(3) != ""){
$userID = trackClicks($this->uri->segment(3),$type);
}elseif($this->uri->segment(2) == "type" AND $this->uri->segment(3) != ""){
$userID = trackClicks(0,$this->uri->segment(3));
}else{
$userID = trackClicks(0,0);
}
?>
<div class="choises rounded">
<form method="POST" name="form_options" action="<?= $_SERVER['REQUEST_URI']; ?>">
<p>
<b>Wat voor abonnement zoekt u</b> <a href="<?= $_SERVER['REQUEST_URI']; ?>" style="text-decoration: none; color: #B1B1B1; border-bottom: 1px DOTTED #E1E1E1;">(Reset)</a>
<input type="checkbox" class="checkbox" name="internet" value="on" id="internet" disabled="disabled" checked="checked" /> <label for="internet">Internet</label>
<input type="checkbox" class="checkbox" name="telefoon" value="on" id="telefoon" <?php if($cookie == 4 || $cookie == 2 || $cookie == ""){ ?> checked<? } ?> /> <label for="telefoon">Telefoon</label>
<input type="checkbox" class="checkbox" name="televisie" value="on" id="televisie" <?php if($cookie == 4 || $cookie == 3 || $cookie == ""){ ?> checked<? } ?> /> <label for="televisie">Televisie</label>
<input type="checkbox" class="checkbox" name="geenvoorkeur" value="on" id="geenvoorkeur" <?php if($geenvoorkeur != ""){ ?> checked<? } ?> /> <label for="geenvoorkeur">Geen voorkeur</label>
<b>| Maximaal p/m: €</b>
<select name="bedrag">
<option value="">Alles</option>
<option value="10" <?php if($bedrag == 10){ ?>selected="selected" <?}?>>10</option>
<option value="20" <?php if($bedrag == 20){ ?>selected="selected" <?}?>>20</option>
<option value="30" <?php if($bedrag == 30){ ?>selected="selected" <?}?>>30</option>
<option value="40" <?php if($bedrag == 40){ ?>selected="selected" <?}?>>40</option>
<option value="50" <?php if($bedrag == 50){ ?>selected="selected" <?}?>>50</option>
</select>
<input type="hidden" name="url" value="<?= $_SERVER['REQUEST_URI']; ?>" />
<input type="image" src="/images/zoek.jpg" value="Verzonden" name="submit" id="submit" class="submit_button" />
</p>
</form>
</div>
<?php
A little mess, bus the point is: When i click submit, the whole script work in FF & Safari, but doesn't do anything in IE. What's wrong with it?
kind Regards.