Tried adding
Code: Select all
session_set_cookie_params ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. Once I change pages it goes back to my default style.ote;>';
print '<form action="e;index.php"e; method="e;post"e;><input type="e;radio"e; name="e;style"e; value="e;
http://www.dustinyonak.net/2col_rightNav.css"e;> Light<input type="e;radio"e; name="e;style"e; value="e;
http://www.dustinyonak.net/2col_rightNa ... "e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. Once I change pages it goes back to my default style.eet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='
http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='
http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />"e;;
} else {
print "e;<link rel='stylesheet' href='$style'
type='text/css' />"e;;
}
When I first choose my style and click submit it works. Once I change pages it goes back to my default style.Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. Once I change pages v id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="
http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="
http://www.dustinyonak.net/2col_rightNa ... "e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://wwdex.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['s
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'hp]
session_set_cookie_params ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST&#t's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="e;navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNav.css"e;> Light<input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNavblk.css"e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTї'submitstyle'])) {
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
print "e;<link rel='stylesheet' href='$style'
type='text/css' />"e;;
} else {
print "e;<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />"e;;
}
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
if (empty ($style)) {
print "e;<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' /itcher):
Code: Select all
print '<div id="e;navBar"e;>styles<div id="e;sectionLinks"e;>';
print '<form action="e;index.php"e; method="e;post"e;><input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNav.css"e;> Light<input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNavblk.css"e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTї'submitstyle'])) {
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
print "e;<link rel='stylesheet' href='$style'
type='text/css' />"e;;
} else {
print "e;<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />"e;;
}
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
if (empty ($style)) {
print "e;<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />"e;;
} else {
print "e;& and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="e;navBar"e;>styles<div id="e;sectionLinks"e;>';
print '<form action="e;index.php"e; method="e;post"e;><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTї'submitstyle'])) {
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
print "e;<link rel='stylesheet' href='$style'
type='text/css' /& it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style"e; value="e;http://www.dustinyonak.net/2col_rightNav.css"e;> Light<input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNavblk.css"e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />&mp;quote;index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. Once I change pages it goes back to my default style.name="style" value="
http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="
http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTї'submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "&ore my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style"e; value="e;http://www.dustinyonak.net/2col_rightNav.css"e;> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTї'submitstyle'])) {
$style = $_POSTї'style'];
$_SESSIONї'style'] = $styactual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="e;sectionLinks"e;>';
print '<form action="e;index.php"e; method="e;post"e;><input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNav.css"e;> Light<input type="e;radio"e; name="e;style"e; value="e;http://www.dustinyonak.net/2col_rightNavblk.css"e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. te;navBar">styles<div id="sectionLinks"e;>';
print '<form action="index.php" method="post"><input type="radio" name="style" value="
http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="
http://www.dustinyonak.net/2col_rightNa ... "e;> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first che="radio" name="style" value="
http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='textlt;div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['stylearams ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type=]
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTї'submitstyle'])) {
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
print "e;<link rel='stylesheet' href='$style'
type='text/css' />"e;;
} else {
print "e;<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />"e;;
}
$style = $_POSTї'style'];
$_SESSIONї'style'] = $style;
if (empty ($style)) {
print "e;<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />"e;;
} else {
printher):
Code: Select all
print '<div id="navBar">styles<div id="e;sectionLinks"e;>';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="e;submit"e; name="e;submitstyle"e; value="e;switch style"e;></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
[/php:1:35e0ea07e; name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />&qlue="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. Once I change pages it goes back to my default style.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='styles session_set_cookie_params ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSea07b1]
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
s ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POSTarams ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.
session_set_cookie_params ('.dustinyonak.net');
Before my session_start(); and it's still not working.
Here's the actual code I'm using (trying to make a css style switcher):
Code: Select all
print '<div id="navBar">styles<div id="sectionLinks">';
print '<form action="index.php" method="post"><input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNav.css"> Light<input type="radio" name="style" value="http://www.dustinyonak.net/2col_rightNavblk.css"> Dark<input type="submit" name="submitstyle" value="switch style"></form></div>';
Here's the form handler:
Code: Select all
//Style sheet switcher v0.3b
if (isset ($_POST['submitstyle'])) {
$style = $_POST['style'];
$_SESSION['style'] = $style;
print "<link rel='stylesheet' href='$style'
type='text/css' />";
} else {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
}
$style = $_POST['style'];
$_SESSION['style'] = $style;
if (empty ($style)) {
print "<link rel='stylesheet'
href='http://www.dustinyonak.net/2col_rightNav.css'
type='text/css' />";
} else {
print "<link rel='stylesheet' href='$style'
type='text/css' />";
}
When I first choose my style and click submit it works. Once I change pages it goes back to my default style.