Mir ist aufgefallen das die Erreignisse onchange und onsubmit nach einfügen von session_start(); nicht mehr funktionieren. Z.B.: Die Formular abfrage check_form_auswahl().
Hier der Clientbasierte Seitenquelltext(javaScript mit session_start();):
Leider habe ich keine andere Möglichkeit den Quelltext bereit zu stellen.
<script type="text/javascript">
function email_link(name, domain, tld)
{
var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+name+"@"+domain+"."+tld+"</a>";
document.write(link);
}
function email_form(name, domain, tld)
{
var form = "<form name='Formular' action='mailto:"+name+"@"+domain+"."+tld+"' enctype='Text/Plain' method='POST' onsubmit='return check_form()'><input type="hidden" name="PHPSESSID" value="d28b89a5bfbef24e135645819a64a41b" />";
document.write(form);
}
function check_form_auswahl()
{
if (document.form_auswahl.hersteller_select.value == "" && document.form_auswahl.gruppe1_select.value == "" && document.form_auswahl.gruppe2_select.value == "" && document.form_auswahl.gruppe3_select.value == "")
{
alert("Bitte min. eine Kategorie auswählen!");
document.form_auswahl.hersteller_select.focus();
return false;
}
}
function check()
{
//echo "<select name=gruppe1_select onchange=window.location.href="${_SERVER['SCRIPT_NAME']}"."?gruppe1_select="+this.value+"&gruppe2_select="+document.form_auswahl.gruppe2_select.value>";
window.location.href="shop.php?hersteller_select="+document.form_auswahl.hersteller_select.value
+"&gruppe1_select="+document.form_auswahl.gruppe1_select.value
+"&gruppe2_select="+document.form_auswahl.gruppe2_select.value
+"&gruppe3_select="+document.form_auswahl.gruppe3_select.value;
}
function switchlayer(Layer_Name)
{
var GECKO = document.getElementById? 1:0 ;
var NS = document.layers? 1:0 ;
var IE = document.all? 1:0 ;
if (GECKO)
{document.getElementById(Layer_Name).style.display=
(document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';}
else if (NS)
{document.layers[Layer_Name].display=(document.layers[Layer_Name].display==
'block') ? 'none' : 'block';}
else if (IE)
{document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display==
'block') ? 'none' : 'block';}
}
</script>
Hier der Clientbasierte Seitenquelltext(javaScript ohne session_start();):
<script type="text/javascript">
function email_link(name, domain, tld)
{
var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+name+"@"+domain+"."+tld+"</a>";
document.write(link);
}
function email_form(name, domain, tld)
{
var form = "<form name='Formular' action='mailto:"+name+"@"+domain+"."+tld+"' enctype='Text/Plain' method='POST' onsubmit='return check_form()'>";
document.write(form);
}
function check_form_auswahl()
{
if (document.form_auswahl.hersteller_select.value == "" && document.form_auswahl.gruppe1_select.value == "" && document.form_auswahl.gruppe2_select.value == "" && document.form_auswahl.gruppe3_select.value == "")
{
alert("Bitte min. eine Kategorie auswählen!");
document.form_auswahl.hersteller_select.focus();
return false;
}
}
function check()
{
//echo "<select name=gruppe1_select onchange=window.location.href="${_SERVER['SCRIPT_NAME']}"."?gruppe1_select="+this.value+"&gruppe2_select="+document.form_auswahl.gruppe2_select.value>";
window.location.href="shop.php?hersteller_select="+document.form_auswahl.hersteller_select.value
+"&gruppe1_select="+document.form_auswahl.gruppe1_select.value
+"&gruppe2_select="+document.form_auswahl.gruppe2_select.value
+"&gruppe3_select="+document.form_auswahl.gruppe3_select.value;
}
function switchlayer(Layer_Name)
{
var GECKO = document.getElementById? 1:0 ;
var NS = document.layers? 1:0 ;
var IE = document.all? 1:0 ;
if (GECKO)
{document.getElementById(Layer_Name).style.display=
(document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';}
else if (NS)
{document.layers[Layer_Name].display=(document.layers[Layer_Name].display==
'block') ? 'none' : 'block';}
else if (IE)
{document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display==
'block') ? 'none' : 'block';}
}
</script>