If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Redirect log in page

To whom is this concern i have problem with log in page i am trying to redirect page on my index.php page but i couldn't ,this code i copied from your website.Right here when i going from log in page to success page i getting blank page.

I think is problem here echo "<form action=\"?op=login\" method=\"POST\">"; because when i am trying to preview in browser on the end of the domain i have this \"?op=login\"

Ya i really wish you would of typed your problem a little better your text is a little confusing. but im gonna try to help. first of all i would not of set this up the way you have it set up.

1. you can use get and post you need to pick one of the other when gathering the information. so if someone is trying to log in with a for and the action is post but then in your authentication process you are using GET its not gonna work right.

2. the reason you see OP=login in the URL is because when you use the GET method it post the information to the URL.

So to start with... cause I am not to clear on where the page is directing you when you login. you did not specify that to clearly. it sounds like it is just posing the GET value to the URL. Change the GET to POST and see if that fixes your problem. If not I think we might have to rewrite your script. Ill post one to give you an example.

I really advise against having forms in pages posting to them selves. for some reason I have noticed a lot of people posting questions where their forms dont show up or behave correctly and when you make the action method in the form point to another page and put the php in that page everything seems to work fine. I am not sure why that is maybe someone with more experience then me would not mind explaining it.

Please retype your question and be more clear about what your seeing before you execute anything. and then what your seeing after. such as if the page redirects what does the URL say?

Redirect page

Ya i really wish you would of typed your problem a little better your text is a little confusing. but im gonna try to help. first of all i would not of set this up the way you have it set up.

1. you can use get and post you need to pick one of the other when gathering the information. so if someone is trying to log in with a for and the action is post but then in your authentication process you are using GET its not gonna work right.

2. the reason you see OP=login in the URL is because when you use the GET method it post the information to the URL.

So to start with... cause I am not to clear on where the page is directing you when you login. you did not specify that to clearly. it sounds like it is just posing the GET value to the URL. Change the GET to POST and see if that fixes your problem. If not I think we might have to rewrite your script. Ill post one to give you an example.

I really advise against having forms in pages posting to them selves. for some reason I have noticed a lot of people posting questions where their forms dont show up or behave correctly and when you make the action method in the form point to another page and put the php in that page everything seems to work fine. I am not sure why that is maybe someone with more experience then me would not mind explaining it.

Please retype your question and be more clear about what your seeing before you execute anything. and then what your seeing after. such as if the page redirects what does the URL say?

This is where is orginal code //www.webdeveloper.com/forum/showthread.php?265799-Login-amp-Registration-form-with-profile

I need you to post your index page. your login script. and do it with code tags so its easy for me to read. so type [code ] with out the space and close it with [/code ] two seperate scripts one is the full index page and one is the login script.

unless they are on the same page if so just post what you have the way you have it in the code tags

Redirect page

Originally Posted by Nicholas Diaz

ok do this...

I need you to post your index page. your login script. and do it with code tags so its easy for me to read. so type [code ] with out the space and close it with [/code ] two seperate scripts one is the full index page and one is the login script.

unless they are on the same page if so just post what you have the way you have it in the code tags

i need you to answer my question... so when someone goes to your webpage you want them to immediatly be prompted to login? right? and once they login then they can see the information on the index page? so as of now it would be i go to your site. i log in then it shows me test on the page? is this correct?