Topic: "php code...." (page 1 of 1)

1
Author Post
sniperkid
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
i have made a login script and it uses method POST and it then refreshes the current page (login.php) saying that you are logged in and it uses a meta to refresh to another page, would $username=$_POST["username"]; work because i cant seem to get it to :-?

private message Website
cyph1e
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
You gotta use sessions, from reading your post, it seems that you are not.
private message Website
sniperkid
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
i cant seem to get it to refresh to another page though, its something like this...

check username and password are correct
if not then do this
else
echo "Logged In";
echo "<meta http-equiv=\"Refresh\" content=\"3;>url=address here\">";

but some how it doesn't goto that page :-?
private message Website
matrixman
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Hi,

i think this is the correct way:

if(....)
{
echo "<meta http-equiv=\"refresh\" content=\"2 ; URL=adress.php\"> ";
}

:D
greetz matrixman
private message EMail
sniperkid
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
thanks i got it now :-)
just a quick question in frames how would i change a frame when the page loads, like when you login the nav bar changes to the challenges sort of like that....

Thanks
private message Website

Topic: "php code...." (page 1 of 1)

1