Forum Moderators: coopster
<?php
session_start();
header("Cache-control: private"); // IE 6 Fix.
// Get the user's input from the form
$skin = $_POST['skin'];
// Register session key with the value
$_SESSION['name'] = $skin;
header('location:http://localhost/welcome.php3');
?>
header("Location: [localhost...]
I'm assuming when you put localhost in there it was just for this post...right? If not then it would confuse the browser.
JAG
header('Location: [localhost...]
i just forgot the sub folder..it works both with double quotes and single quotes and space and no spcae as long as it is on localhost.
but still problme with the online wesion
i had made changes to the local verison of the site, and had moved skins into a new folder.....guess what...i forgot to upload this folder to the server,, so there was a reference to a non-exsisting folder.....thats why the whole problem...the thing is now...if i use
header("Location: welcome.php3");
it works fine...no probs at all, but if i use
header("Location: [domain.tk...]
then it reloads the index page aagain...
i had tried the first option but since the skin wasnt loading i figured the session wasnt maybe set.....
but anyway just wondering,,,,why the reload, when using full url?
anyways.....thanks for all the help
kumar
u guys know what? i might just be the biggest idiot on the planet....
Idiot? Nope. We all make those mistakes :-)
header("Location: [domain.tk...]Is your welcome.php3 in your earthsoul directory? If so then you need to add it to the url.
JAG