rumah makan
New Member
I have actually discovered my problem but I am really want to know why this is an issue. I had two pages form1.php I started a session on that page and hit submit. Then I had a link to session2.php which started that session and was able to pull the information from form1.php. I am just learning about sessions and this was a very simple exercise to learn what a session can do.Here lies the issue, I had a stylesheet link in my head and it had a blank href well it was href="http://stackoverflow.com/questions/2073715/#" and when that was there the session2.php would not start the session from form1.php and grab the info from the form. Without that href="http://stackoverflow.com/questions/2073715/#" in the style tag it worked fine, and it also worked fine if it was a fake styletag href="http://stackoverflow.com/questions/2073715/something.css" but href="" doesn't work either.Why is this? I only have those in because its a template I made for workflow, maybe I cant include the css link in my template anymore to prevent future issues.You can see this site working here, if I haven't explained myself.form1.php\[code\]<?phpsession_start();$_SESSION['name'] = $username;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title></title><!--//CSS STYLESHEETS//--><link rel="stylesheet" href="http://stackoverflow.com/questions/2073715/#" type="text/css"></head><body><a href="http://stackoverflow.com/questions/2073715/sessions2.php">Go to session 2</a><!--form stuff is in here--></body\[/code\]session2.php\[code\]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title></title></head><body> <?php session_start(); $username = $_SESSION['name']; echo $username; ?> </body></html>\[/code\]